(promise: Promise<T>, timeoutMs: number)
| 98 | }); |
| 99 | |
| 100 | export const setMaxPromiseTimeout = <T>(promise: Promise<T>, timeoutMs: number): Promise<T> => |
| 101 | Promise.race([promise, new Promise<never>((_, reject) => setTimeout(() => reject('Timeout exceeded!'), timeoutMs))]); |
| 102 | |
| 103 | /** |
| 104 | * @param networkName The network name as listed in airnode-protocol/deployments |
no outgoing calls
no test coverage detected