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

bookChallenge: Async Loop Processing

Aufgabe

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ösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Async Loop Processing

Swipe um das Menü anzuzeigen

Aufgabe

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ösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

some-alt