- ServerPromiseWithTimeout<T>(timeout: number, executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>
Type parameters
Parameters
timeout: number
executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void
Returns Promise<T>
Run a promise along with a timeout