docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AwaitableUtils<T>

    Utils to help with the Awaitable<T> class in Unity 6.0 or newer.

    Inheritance
    object
    AwaitableUtils<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public static class AwaitableUtils<T>
    Type Parameters
    Name Description
    T

    The awaited result type.

    Methods

    FromResult(T)

    An Awaitable equivalent to C#'s Task.FromResult.

    Declaration
    public static Awaitable<T> FromResult(T result)
    Parameters
    Type Name Description
    T result
    Returns
    Type Description
    Awaitable<T>
    Remarks

    This method isn't thread-safe.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)