MainThread.MainThreadAwaiter
csharp
public readonly struct MainThreadAwaiter : ICriticalNotifyCompletionNamespace Flux.
The awaiter of Yield: never complete at once, its continuation goes to the main thread.
Properties
IsCompleted
csharp
public bool IsCompleted { get; }Always false: the continuation always goes through the main thread's queue.
Methods
OnCompleted
csharp
public void OnCompleted(Action continuation)Queues the continuation on the main thread.
UnsafeOnCompleted
csharp
public void UnsafeOnCompleted(Action continuation)Queues the continuation on the main thread.
GetResult
csharp
public void GetResult()Nothing to return.
