Information about an async method, returned by the GetAsyncInfo(IMethod) extension method of IMethod.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct AsyncInfo
Properties
Name | Description |
---|---|
HasMethodBuilder | Gets a value indicating whether the return type of the method has an |
IsAsync | Gets a value indicating whether the method has an async implementation, i.e. has the |
IsAwaitable | Gets a value indicating whether the return type of the method is awaitable, i.e. whether it can be used with the |
IsAwaitableOrVoid | Gets a value indicating whether the return type of the method is either awaitable (see IsAwaitable) either |
ResultType | Gets the type of the result of the async method, i.e. the type of the |