@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Function promiseTimeout

    • a promise that resolves (or rejects if should_reject = true) after a certain number of milliseconds.

      this is a useful shorthand for creating delays, and then following them up with a .then call. you may also use this as a sleep/wait function in an async context where await is available.

      Parameters

      • wait_time_ms: number
      • Optionalshould_reject: boolean

      Returns Promise<typeof TIMEOUT>