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

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Async Calculation

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
single

single

some-alt