Struct SwitchToUnityMainThreadAwaiter
An awaiter which, when awaited, switches the current context to the Unity main thread.
Inherited Members
Namespace: IPA.Utilities
Assembly: IPA.Loader.dll
Syntax
public struct SwitchToUnityMainThreadAwaiter : ICriticalNotifyCompletion, INotifyCompletion
Properties
| Improve this Doc View SourceIsCompleted
Gets whether or not this awaiter is completed.
Declaration
public readonly bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceGetResult()
Gets the result of this awaiter.
Declaration
public void GetResult()
OnCompleted(Action)
Registers a continuation to be called when this awaiter finishes.
Declaration
public void OnCompleted(Action continuation)
Parameters
Type | Name | Description |
---|---|---|
Action | continuation | The continuation. |
UnsafeOnCompleted(Action)
Registers a continuation to be called when this awaiter finishes, without capturing the execution context.
Declaration
public void UnsafeOnCompleted(Action continuation)
Parameters
Type | Name | Description |
---|---|---|
Action | continuation | The continuation. |