docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PromiseGenerator

    A Promise pool manager.

    Inheritance
    object
    PromiseGenerator
    Namespace: UnityEngine.Promise
    Assembly: solution.dll
    Syntax
    public class PromiseGenerator

    Constructors

    Name Description
    PromiseGenerator()

    Creates a new promise generator.

    Methods

    Name Description
    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.

    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.

    Wait(IEnumerable<Deferred>, bool)

    Waits for a list of deferred to be done.

    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)