Amazon Vinyl
    Preparing search index...

    Function timeout

    • Returns a promise that will reject after the provided number of seconds. If the optional abort signal is aborted, the timer will be canceled and the promise resolved. This is the inverse of sleep

      Parameters

      • time: number

        The number of seconds to wait.

      • options: TimeoutOptions = {}

        Timeout options (abort, message, origin, level).

      Returns Promise<void>