AsyncInfo.IsAwaitable Property
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.
This does not include IAsyncEnumerable
, which can be used with await foreach
but not await
.
Declaration
public bool IsAwaitable { get; }
Property Value
Type | Description |
---|---|
bool |