Challenge: 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
SimulateWebRequestAsyncmethod 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?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: 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
SimulateWebRequestAsyncmethod 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?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single