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

bookChallenge: Async Loop Processing

Uppgift

Swipe to start coding

Write an async method that processes a list of web request URLs by awaiting each simulated request in sequence.

  • Await the SimulateWebRequestAsync method for each URL in the list.
  • After awaiting each result, assign the string "Processed: " plus the result to a variable.
  • The method must process each URL one after the other, not in parallel.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Async Loop Processing

Svep för att visa menyn

Uppgift

Swipe to start coding

Write an async method that processes a list of web request URLs by awaiting each simulated request in sequence.

  • Await the SimulateWebRequestAsync method for each URL in the list.
  • After awaiting each result, assign the string "Processed: " plus the result to a variable.
  • The method must process each URL one after the other, not in parallel.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

some-alt