Frame.FrameAwaiter

csharp
public readonly struct FrameAwaiter : ICriticalNotifyCompletion, IStateMachineBoxAwareAwaiter

Namespace Flux.

Waits for the next frame (used by await).

Properties

IsCompleted

csharp
public bool IsCompleted { get; }

Always false: the method always waits for the next frame.

Methods

OnCompleted

csharp
public void OnCompleted(Action continuation)

Runs continuation at the start of the next frame (used by await).

UnsafeOnCompleted

csharp
public void UnsafeOnCompleted(Action continuation)

Runs continuation at the start of the next frame (used by await).

GetResult

csharp
public void GetResult()

Ends the await (nothing to return).