Interface Future.IAwaiter<TResult>
Represents awaiter of the asynchronous computation result represented by future object.
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.dll
Syntax
public interface IAwaiter<out TResult> : IFuture, INotifyCompletion
Type Parameters
Name | Description |
---|---|
TResult | The result of asynchronous operation. |
Methods
| Improve this Doc View SourceGetResult()
Ends the wait for the completion of the asynchronous task.
Declaration
TResult GetResult()
Returns
Type | Description |
---|---|
TResult | The result of asynchronous computation. |
Exceptions
Type | Condition |
---|---|
OperationCanceledException | Cancellation requested and caller specified that exception should be thrown. |
Future.IncompletedFutureException | The current future is not completed. |