( work: Promise<unknown>, waitUntil: ((work: Promise<unknown>) => void) | undefined, )
| 89 | * structurally unable to fail or delay a connect. |
| 90 | */ |
| 91 | const detach = ( |
| 92 | work: Promise<unknown>, |
| 93 | waitUntil: ((work: Promise<unknown>) => void) | undefined, |
| 94 | ): void => { |
| 95 | const settled = work.then( |
| 96 | () => undefined, |
| 97 | () => undefined, |
| 98 | ); |
| 99 | if (waitUntil) waitUntil(settled); |
| 100 | }; |
| 101 | |
| 102 | // --------------------------------------------------------------------------- |
| 103 | // The gate |
no test coverage detected