Interface IAsyncOperation<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IAsyncOperation<T>

    Templated version of IAsyncOperation, provides templated overrides where possible

    Inherited Members
    IAsyncOperation.Status
    IAsyncOperation.Validate()
    IAsyncOperation.IsValid
    IAsyncOperation.Release()
    IAsyncOperation.IsDone
    IAsyncOperation.PercentComplete
    IAsyncOperation.ResetStatus()
    IAsyncOperation.Context
    IAsyncOperation.Key
    IAsyncOperation.OperationException
    Namespace: UnityEngine.ResourceManagement.AsyncOperations
    Syntax
    public interface IAsyncOperation<T> : IAsyncOperation, IEnumerator
    Type Parameters
    Name Description
    T

    Properties

    Result

    Gets the result as the templated type.

    Declaration
    T Result { get; }
    Property Value
    Type Description
    T

    The result.

    WaitHandle

    Returns an event wait handle. This is used by the await support but can be used to wait on the operation in a separate thread. The event is set after delegates are invoked.

    Declaration
    WaitHandle WaitHandle { get; }
    Property Value
    Type Description
    System.Threading.WaitHandle

    Methods

    Retain()

    Internally marks operations to not automatically release back to the cache.

    Declaration
    IAsyncOperation<T> Retain()
    Returns
    Type Description
    IAsyncOperation<T>

    Passes back this

    Events

    Completed

    Occurs when completed.

    Declaration
    event Action<IAsyncOperation<T>> Completed
    Event Type
    Type Description
    System.Action<IAsyncOperation<T>>
    Back to top
    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