Class WaitHandleFuture
Represents WaitHandle turned into awaitable future.
Implements
Future.IAwaiter<Boolean>
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public sealed class WaitHandleFuture : Future<Task<bool>>, Future.IAwaiter<bool>
Properties
| Improve this Doc View SourceIsCompleted
Indicates that the underlying wait handle is in signaled state.
Declaration
public override bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceAsTask()
Converts wait handle into Task<TResult>.
Declaration
public override Task<bool> AsTask()
Returns
Type | Description |
---|---|
Task<Boolean> | The task representing wait handle. |
GetAwaiter()
Retrieves awaiter for underlying wait handle.
Declaration
public IAwaiter<bool> GetAwaiter()
Returns
Type | Description |
---|---|
IAwaiter<Boolean> | The object that is used to monitor the completion of an asynchronous operation. |
Implements
Future.IAwaiter<>