NodeWorld

MainThread.MainThreadAwaiter

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public readonly struct MainThreadAwaiter : ICriticalNotifyCompletion

Namespace 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.