pinterval
    Preparing search index...

    Class Interval

    Index
    • get done(): Promise<void>

      The completion promise for the current run.

      It is resolved before the first start. Every call to start() creates a new promise that resolves on natural completion or stop() and rejects on external cancellation or an unhandled execution error.

      Returns Promise<void>

    • get isRunning(): boolean

      Whether the current run is actively executing or waiting for its next execution.

      Returns boolean

    • Pauses the current run without completing it or resetting its iteration.

      Returns this

      Current instance.

    • Resumes a paused run after one full normal delay without resetting its progress.

      Returns this

      Current instance.

    • Starts a new run.

      Returns this

      Current instance.

      Throws an error if the current run is running or paused.

    • Stops the current run, aborts its effective signal, and resolves its completion promise.

      Returns this

      Current instance.