IAwaitable<T> Interface

Definition

Explicit interface to support the compiling of async/await.

public interface IAwaitable<out T>
type IAwaitable<'T> = interface
Public Interface IAwaitable(Of Out T)

Type Parameters

T

The type of the contained value.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived

Methods

GetAwaiter()

Get the awaiter for this awaitable item.

Extension Methods

ToTask<T>(IAwaitable<T>)

Applies to