Skip to main content

ServerPromiseWithTimeout

Callable

  • ServerPromiseWithTimeout<T>(timeout: number, executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>

  • Run a promise along with a timeout


    Type parameters

    • T

    Parameters

    • timeout: number
    • executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void

      Returns Promise<T>