Class RuntimeAsync
A collection of helpers for processing and emitting IL for the runtime's async machinery.
public static class RuntimeAsync
- Inheritance
-
RuntimeAsync
Fields
Properties
- AwaitTask
- Returns Await(Task).
- AwaitTaskT
- Returns Await<T>(Task<T>).
- AwaitValueTask
- Returns Await(ValueTask).
- AwaitValueTaskT
- Returns Await<T>(ValueTask<T>).
- INotifyCompletion
- Returns
typeof(INotifyCompletion).
- IsSupported
- Returns true if the current runtime configuration supports runtime async. If this returns false, all other members on RuntimeAsync fail, even if the types they would return exist in this runtime configuration.
- TaskT
- Returns
typeof(Task<TResult>).
- ValueTaskT
- Returns
typeof(ValueTask<TResult>).
Methods
- EmitAwait(ILProcessor, TypeReference)
- Emits a runtime async await sequence to
il.
- EmitAwait(ILGenerator, Type)
- Emits a runtime async await sequence to
il.
- IsSupportedReturnType(Type)
- Tests if
typeis a supported runtime-async return type.