Struct DispatcherAwaiter
Dispatcher awaiter, making a dispatcher awaitable
Implements
System.Runtime.CompilerServices.INotifyCompletion
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: ComposableAsync
Assembly: ComposableAsync.Core.dll
Syntax
public struct DispatcherAwaiter : INotifyCompletion
Constructors
| Improve this Doc View SourceDispatcherAwaiter(IDispatcher)
Construct a NotifyCompletion fom a dispatcher
Declaration
public DispatcherAwaiter(IDispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher |
Properties
| Improve this Doc View SourceIsCompleted
Dispatcher never is synchronous
Declaration
public bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetResult()
No Result
Declaration
public void GetResult()
OnCompleted(Action)
Dispatch on complete
Declaration
public void OnCompleted(Action continuation)
Parameters
Type | Name | Description |
---|---|---|
System.Action | continuation |
Implements
System.Runtime.CompilerServices.INotifyCompletion