( scope: () => Promise<T>, timeout: number, )
| 29 | } |
| 30 | |
| 31 | export async function runWithTimeout<T>( |
| 32 | scope: () => Promise<T>, |
| 33 | timeout: number, |
| 34 | ): Promise<T> { |
| 35 | return await promiseTimeout(scope(), timeout); |
| 36 | } |
| 37 |
no test coverage detected
searching dependent graphs…