Challenge: Batch Processing with Async
Завдання
Swipe to start coding
Write an asynchronous method that processes a list of tasks in batches using Task.WhenAll. The method should execute up to batchSize tasks concurrently, waiting for all tasks in each batch to complete before starting the next batch.
- For each batch, select up to
batchSizetask functions from the input list. - Start and await all tasks in the batch using
Task.WhenAll. - Continue processing batches until all task functions in the list have been executed.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.56
Challenge: Batch Processing with Async
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write an asynchronous method that processes a list of tasks in batches using Task.WhenAll. The method should execute up to batchSize tasks concurrently, waiting for all tasks in each batch to complete before starting the next batch.
- For each batch, select up to
batchSizetask functions from the input list. - Start and await all tasks in the batch using
Task.WhenAll. - Continue processing batches until all task functions in the list have been executed.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 4
single