Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Batch Processing with Async | Async Loops and Processing Collections
C# Async and Await Practice

bookChallenge: Batch Processing with Async

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Batch Processing with Async

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

some-alt