Struct AwaitableResult<T, TError>
Represents awaitable object that can suspend the exception raised by the underlying task.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.dll
Syntax
public readonly struct AwaitableResult<T, TError> where TError : struct, Enum
Type Parameters
Name | Description |
---|---|
T | The type of the task. |
TError | The type of the error. |
Methods
| Edit this page View SourceConfigureAwait(bool)
Configures an awaiter for this value.
Declaration
public AwaitableResult<T, TError> ConfigureAwait(bool continueOnCapturedContext)
Parameters
Type | Name | Description |
---|---|---|
bool | continueOnCapturedContext | true to attempt to marshal the continuation back to the captured context; otherwise, false. |
Returns
Type | Description |
---|---|
AwaitableResult<T, TError> | The configured object. |
GetAwaiter()
Gets the awaiter for this object.
Declaration
public AwaitableResult<T, TError>.Awaiter GetAwaiter()
Returns
Type | Description |
---|---|
AwaitableResult<T, TError>.Awaiter | The awaiter for this object. |