TickAwaitable
Namespace Mc.Scripting · Kind struct (readonly)
public readonly struct TickAwaitable : ICriticalNotifyCompletion, INotifyCompletionThe awaitable returned by Scheduler.ToTick / Scheduler.ToAsync.
Properties
Section titled “Properties”| Member | Description |
|---|---|
bool IsCompleted { get; } |
Awaiter protocol: already on the target thread means no hop. |
IsCompleted
Section titled “IsCompleted”public bool IsCompleted { get; }Awaiter protocol: already on the target thread means no hop.
Methods
Section titled “Methods”| Member | Description |
|---|---|
TickAwaitable GetAwaiter() |
Awaiter protocol. |
void GetResult() |
Awaiter protocol. |
void OnCompleted(Action continuation) |
Awaiter protocol. |
void UnsafeOnCompleted(Action continuation) |
Awaiter protocol. |
GetAwaiter
Section titled “GetAwaiter”public TickAwaitable GetAwaiter()Awaiter protocol.
Returns TickAwaitable: This awaiter.
GetResult
Section titled “GetResult”public void GetResult()Awaiter protocol.
OnCompleted
Section titled “OnCompleted”public void OnCompleted(Action continuation)Awaiter protocol.
Parameters
| Name | Type | Description |
|---|---|---|
continuation |
Action |
The continuation. |
UnsafeOnCompleted
Section titled “UnsafeOnCompleted”public void UnsafeOnCompleted(Action continuation)Awaiter protocol.
Parameters
| Name | Type | Description |
|---|---|---|
continuation |
Action |
The continuation. |