Interface SetTimeoutPromise

The promisified form of setTimeout

  • Parameters

    • Optionaln: number
    • Optionalvalue: undefined
    • Optionaloptions: {
          reffed?: boolean;
          signal?: AbortSignal;
      }
      • Optionalreffed?: boolean
      • Optionalsignal?: AbortSignal

    Returns Promise<void>

  • Type Parameters

    • T = void

    Parameters

    • n: number
    • value: T
    • Optionaloptions: {
          reffed?: boolean;
          signal?: AbortSignal;
      }
      • Optionalreffed?: boolean
      • Optionalsignal?: AbortSignal

    Returns Promise<T>