Interface IPromiseTimer | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IPromiseTimer

    Namespace: RSG
    Syntax
    public interface IPromiseTimer

    Methods

    Cancel(IPromise)

    Cancel a waiting promise and reject it immediately.

    Declaration
    bool Cancel(IPromise promise)
    Parameters
    Type Name Description
    IPromise promise
    Returns
    Type Description
    System.Boolean

    Update(Single)

    Update all pending promises. Must be called for the promises to progress and resolve at all.

    Declaration
    void Update(float deltaTime)
    Parameters
    Type Name Description
    System.Single deltaTime

    WaitFor(Single)

    Resolve the returned promise once the time has elapsed

    Declaration
    IPromise WaitFor(float seconds)
    Parameters
    Type Name Description
    System.Single seconds
    Returns
    Type Description
    IPromise

    WaitUntil(Func<TimeData, Boolean>)

    Resolve the returned promise once the predicate evaluates to true

    Declaration
    IPromise WaitUntil(Func<TimeData, bool> predicate)
    Parameters
    Type Name Description
    System.Func<TimeData, System.Boolean> predicate
    Returns
    Type Description
    IPromise

    WaitWhile(Func<TimeData, Boolean>)

    Resolve the returned promise once the predicate evaluates to false

    Declaration
    IPromise WaitWhile(Func<TimeData, bool> predicate)
    Parameters
    Type Name Description
    System.Func<TimeData, System.Boolean> predicate
    Returns
    Type Description
    IPromise
    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