docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Completer<TResult>

    Handle to settle a promise.

    Namespace: UnityEngine.Promise
    Assembly: solution.dll
    Syntax
    public struct Completer<TResult>
    Type Parameters
    Name Description
    TResult

    Type of the result this completer can accept in its Resolve(TResult) method.

    Properties

    Name Description
    None

    Handle to settle a promise.

    Methods

    Name Description
    Reject(Exception)

    Rejects the handled promise for the given reason.

    Resolve(TResult)

    Fulfills the handled promise with the given data.

    SetProgression(int, int)

    Sets the progression of the promise.

    Operators

    Name Description
    implicit operator Rejectable(Completer<TResult>)

    Can be used to replace a completer for process you don't need the feedback from.

    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)