Open sandboxFocus

Property IsAwaitable

IsAwaitable

Gets a value indicating whether the return type of the method is awaitable, i.e., whether it can be used with the await keyword.

Declaration
public bool IsAwaitable { get; }
Property Value
Type Description
bool

true if the return type can be used with await; otherwise, false.

Remarks

This does not include IAsyncEnumerable<T>, which can be used with await foreach but not await.