Interface Future.IAwaiter<R>
Represents awaiter of the asynchronous computation result represented by future object.
Inherited Members
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.dll
Syntax
public interface IAwaiter<out R> : IFuture, INotifyCompletion
Type Parameters
| Name | Description |
|---|---|
| R |
Methods
| Improve this Doc View SourceGetResult()
Ends the wait for the completion of the asynchronous task.
Declaration
R GetResult()
Returns
| Type | Description |
|---|---|
| R | The result of asynchronous computation. |
Exceptions
| Type | Condition |
|---|---|
| Future.IncompletedFutureException | The current future is not completed. |