Is it possible to await an event instead of another async method?
Improvement: Add async method to optimize resized images 1.3.6
Mejoría: hemos añadido un método asíncrono para optimizar las imágenes redimensionadas.
Control then returns to the caller of the async method.
An async method can't declare ByRef parameters in Visual Basic or ref or out parameters in C#, but the method can call methods that have such parameters.
Un método asincrónico puede tener un tipo devuelto de Task, Task<TResult> o void. El método no puede declarar ningún parámetro ref u out, pero puede llamar a los métodos que tienen estos parámetros.
An async method can have a return type of Task, Task<TResult>, or void.
Tipos de valor devueltos Un método asincrónico puede tener un tipo devuelto de Task, Task<TResult> o void.
Either the IAsyncResult object did not come from the corresponding async method on this type, or EndWrite was called multiple times with the same IAsyncResult.
El objeto IAsyncResult no proviene del método asincrónico correspondiente en este tipo o se llamó a EndWrite varias veces con el mismo IAsyncResult.
The following example shows an async method.
An async method provides a convenient way to do things that take a long time without causing blockages in the calling thread.
Un método async ofrece una forma muy conveniente de hacer cosas que tardan mucho tiempo sin provocar bloqueos en el hilo que hace la llamada.
The thread that makes an async method call can continue without having to wait until the method finishes. await
El hilo que hace la llamada a un método async puede continuar sin tener que esperar a que el método async termine.
For more information about async method return types, see Async Return Types (C# and Visual Basic).
Para obtener más información y ejemplos, vea Tipos de valor devuelto de Async (C y Visual Basic).
Select the radio button for either the Defer or Async method.