docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AsyncFuture<T>

    A handle back to a result that will be calculated in the future. This class is used to report an asynchronous solution.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public readonly struct AsyncFuture<T> where T : DataModelElement
    Type Parameters
    Name Description
    T

    The data type of the future (either a sensor, annotation, or metric)

    Methods

    IsPending()

    Is this future still pending?

    Declaration
    public bool IsPending()
    Returns
    Type Description
    bool

    Is this future still pending

    IsValid()

    Is the future valid?

    Declaration
    public bool IsValid()
    Returns
    Type Description
    bool

    Is the future valid?

    Report(T)

    Report the result that this future has been waiting for.

    Declaration
    public void Report(T toReport)
    Parameters
    Type Name Description
    T toReport

    The value to report

    In This Article
    Back to top
    Copyright © 2024 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)