Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer 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

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 4
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Async Calculation

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 4
single

single

some-alt