Challenge: Async Calculation
Opgave
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øsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Async Calculation
Stryg for at vise menuen
Opgave
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øsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single