docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPromiseHandles

    GetPromiseHandles(out Deferred, out Completer)

    Take a promise out of the pool, or create one if it is empty, and set the two given handlers to handle this promise.

    Declaration
    public void GetPromiseHandles(out Deferred deferred, out Completer completer)
    Parameters
    Type Name Description
    Deferred deferred

    A handler to read data from the taken promise.

    Completer completer

    A handler to write data to the taken promise.

    GetPromiseHandles<TResult>(out Deferred<TResult>, out Completer<TResult>)

    Extract a promise from the pool, or create one if it is empty, and set the two given handlers to handle this promise.

    Declaration
    public void GetPromiseHandles<TResult>(out Deferred<TResult> deferred, out Completer<TResult> completer)
    Parameters
    Type Name Description
    Deferred<TResult> deferred

    A handler to read data from the taken promise.

    Completer<TResult> completer

    A handler to write data to the taken promise.

    Type Parameters
    Name Description
    TResult

    Type of the result of the promise.

    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)