Show / Hide Table of Contents

    Struct Extensions.SynchronizationContextAwaiter

    Helper class to enable await on SynchronizationContext. This is useful if you want to switch execution flow of an async function to a different thread, like Unity game thread for example.

    Implements
    INotifyCompletion
    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Microsoft.MixedReality.SpatialAlignment
    Assembly: cs.temp.dll.dll
    Syntax
    public struct SynchronizationContextAwaiter : INotifyCompletion

    Constructors

    SynchronizationContextAwaiter(SynchronizationContext)

    Declaration
    public SynchronizationContextAwaiter(SynchronizationContext context)
    Parameters
    Type Name Description
    SynchronizationContext context

    Properties

    IsCompleted

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

    Methods

    GetResult()

    Declaration
    public void GetResult()

    OnCompleted(Action)

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

    Implements

    INotifyCompletion
    Back to top Generated by DocFX