Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Implementing an Asynchronous Method | Asynchronous Programming and Introduction to Web Services
Introduction to .NET with C#
course content

Contenido del Curso

Introduction to .NET with C#

Introduction to .NET with C#

1. Introduction
2. Asynchronous Programming and Introduction to Web Services
3. Introduction to Databases with .NET
4. CRUD Operations with MySQL
5. Optimizing Database Operations

book
Implementing an Asynchronous Method

Important Points

  • A task represents an asynchronous operation;
  • We can use the async keyword to convert a method into an asynchronous method;
  • An asynchronous method always returns a Task object;
  • In order to return data from an asynchronous method, we use the Task<T> as the method's return value, where T is the datatype of the return value;
  • The await keyword waits for an asynchronous task to be performed.
1. What does the async keyword do in C#?
2. What keyword is used to pause a method until an asynchronous operation is complete?
What does the async keyword do in C#?

What does the async keyword do in C#?

Selecciona la respuesta correcta

What keyword is used to pause a method until an asynchronous operation is complete?

What keyword is used to pause a method until an asynchronous operation is complete?

Selecciona la respuesta correcta

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 2
We're sorry to hear that something went wrong. What happened?
some-alt