Challenge: Implement an Async Stream
Завдання
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
GenerateNumbersAsyncmust asynchronously yield integers from 1 up to and includingcount. - There must be an asynchronous delay of
delayMillisecondsbetween each yielded number. - The
Mainmethod must consume the async stream usingawait foreachand process each yielded value.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.56
Challenge: Implement an Async Stream
Свайпніть щоб показати меню
Завдання
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
GenerateNumbersAsyncmust asynchronously yield integers from 1 up to and includingcount. - There must be an asynchronous delay of
delayMillisecondsbetween each yielded number. - The
Mainmethod must consume the async stream usingawait foreachand process each yielded value.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
single