Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Implement an Async Stream | Async Loops and Processing Collections
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Async and Await Practice

bookChallenge: Implement an Async Stream

Compito

Swipe to start coding

Create an asynchronous iterator method that yields a sequence of numbers with a delay between each value, and consume it using await foreach.

  • The method GenerateNumbersAsync must asynchronously yield integers from 1 up to and including count.
  • There must be an asynchronous delay of delayMilliseconds between each yielded number.
  • The Main method must consume the async stream using await foreach and process each yielded value.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 6
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

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me a real-world example?

close

bookChallenge: Implement an Async Stream

Scorri per mostrare il menu

Compito

Swipe to start coding

Create an asynchronous iterator method that yields a sequence of numbers with a delay between each value, and consume it using await foreach.

  • The method GenerateNumbersAsync must asynchronously yield integers from 1 up to and including count.
  • There must be an asynchronous delay of delayMilliseconds between each yielded number.
  • The Main method must consume the async stream using await foreach and process each yielded value.

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 6
single

single

some-alt