Documentation
    Preparing search index...

    Simple queue of promises, which are run one after the other.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Run the given promise once any other promise given to previous calls of this function have settled. Another promise is returned with its state matching the state of the given promise. This can be used to wait on the given promise to be settled.

      Parameters

      • promise: () => void | Promise<void>

        The promise to run.

      Returns Promise<void>

      A promise matching the state of the promise given to be run.