Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Batch Processing with Async | Async Loops and Processing Collections
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Async and Await Practice

bookChallenge: 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 batchSize task 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

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: 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 batchSize task 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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 4
single

single

some-alt