MeatMotion

MotionAwaiter

The awaiter used by await handle. Waiting ends on either completion or cancellation.

Namespace
MeatMotion
Assembly
MeatMotion

Jump to members

public readonly struct MotionAwaiter : ICriticalNotifyCompletion
MotionAwaiter.cs · L10

Members

MotionAwaiter

Create an awaiter for this handle.

public MotionAwaiter(MotionHandle handle)
Parameters
handle
MotionHandle Handle to control or link.

GetAwaiter

Return this awaiter.

public MotionAwaiter GetAwaiter()
Return value
Returns
MotionAwaiter

IsCompleted

The wait can finish synchronously when the handle is inactive.

public bool IsCompleted { get; }

GetResult

Finish a direct await without returning a value.

public void GetResult()

OnCompleted

Register the continuation to run when the wait ends.

public void OnCompleted(Action continuation)
Parameters
continuation
Action Continuation to invoke when the wait finishes.

UnsafeOnCompleted

Attach the continuation to an active motion or invoke it immediately if already inactive.

public void UnsafeOnCompleted(Action continuation)
Parameters
continuation
Action Continuation to invoke when the wait finishes.