Interface IAsyncOperation<T> | Package Manager UI website
docs.unity.cn
    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 © 2015-2018 Unity
    Generated by DocFX