Home > @wixc3/testing > allWithTimeout
Limits the time a list of promises can take
Signature:
export declare function allWithTimeout<T extends Readonly<any[]>>(...actions: T): PromiseWithTimeout<_PromiseAll<T>>;
| Parameter | Type | Description |
|---|---|---|
| actions | T |
Returns:
PromiseWithTimeout<_PromiseAll<T>>
await allWithTimeout(sleep(1000), sleep(99)).description('will time out').timeout(10)