Challenge: Async Calculation
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Génial!
Completion taux amélioré à 5.56
Challenge: Async Calculation
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
single