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

bookChallenge: Async Calculation

Aufgabe

Swipe to start coding

Implement an asynchronous method that calculates the sum of two integers after a simulated delay and returns the result as a Task of int.

  • The method must perform an asynchronous delay before calculating the sum.
  • The method must return the sum of the two provided integer parameters as a Task of int.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 4
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 Calculation

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Implement an asynchronous method that calculates the sum of two integers after a simulated delay and returns the result as a Task of int.

  • The method must perform an asynchronous delay before calculating the sum.
  • The method must return the sum of the two provided integer parameters as a Task of int.

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 1. Kapitel 4
single

single

some-alt