Function setTimeoutPromise

  • Run function after ms milliseconds and return a promise that resolves when done.

    Type Parameters

    • T = unknown

    Parameters

    • this: unknown
    • callback: ((...args) => T)
        • (...args): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    • ms: number

    Returns Promise<T>