docs.unity3d.com
    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.

    Namespace: UnityEngine.Perception.GroundTruth
    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 readonly bool IsPending()
    Returns
    Type Description
    Boolean

    Is this future still pending

    IsValid()

    Is the future valid?

    Declaration
    public readonly bool IsValid()
    Returns
    Type Description
    Boolean

    Is the future valid?

    Report(T)

    Report the result that this future has been waiting for.

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

    The value to report

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023