mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class AsyncHelpers

    Inheritance
    Object
    AsyncHelpers
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.Logging
    Assembly: cs.temp.dll.dll
    Syntax
    public static class AsyncHelpers

    Methods

    RunSync(Func<Task>)

    Execute's an async Task method which has a void return value synchronously

    Declaration
    public static void RunSync(Func<Task> task)
    Parameters
    Type Name Description
    Func<Task> task

    Task method to execute

    RunSync<T>(Func<Task<T>>)

    Execute's an async TaskT method which has a T return type synchronously

    Declaration
    public static T RunSync<T>(Func<Task<T>> task)
    Parameters
    Type Name Description
    Func<Task<T>> task

    TaskT method to execute

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Return Type

    In This Article
    • Methods
      • RunSync(Func<Task>)
      • RunSync<T>(Func<Task<T>>)
    Back to top Generated by DocFX