-
promiseTimeout<T>(ms,
promise): Promise<T>
-
Parameters
-
ms:
undefined | number
-
promise:
((resolve,
reject) => void)
-
-
(resolve,
reject): void
-
Parameters
-
resolve:
((v)
=> void)
-
reject:
((error)
=> void)
-
-
(error): void
-
Returns
void
Returns
void
Returns Promise<T>