Search Results for

    Show / Hide Table of Contents

    Struct SwitchToUnityMainThreadAwaiter

    An awaiter which, when awaited, switches the current context to the Unity main thread.

    Implements
    System.Runtime.CompilerServices.ICriticalNotifyCompletion
    System.Runtime.CompilerServices.INotifyCompletion
    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: IPA.Utilities
    Assembly: IPA.Loader.dll
    Syntax
    public struct SwitchToUnityMainThreadAwaiter : ICriticalNotifyCompletion, INotifyCompletion

    Properties

    | Improve this Doc View Source

    IsCompleted

    Gets whether or not this awaiter is completed.

    Declaration
    public readonly bool IsCompleted { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    GetResult()

    Gets the result of this awaiter.

    Declaration
    public void GetResult()
    | Improve this Doc View Source

    OnCompleted(Action)

    Registers a continuation to be called when this awaiter finishes.

    Declaration
    public void OnCompleted(Action continuation)
    Parameters
    Type Name Description
    System.Action continuation

    The continuation.

    | Improve this Doc View Source

    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
    System.Action continuation

    The continuation.

    Implements

    System.Runtime.CompilerServices.ICriticalNotifyCompletion
    System.Runtime.CompilerServices.INotifyCompletion

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])

    See Also

    SwitchToMainThreadAsync()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX