(p: Promise<T>)
| 81 | // circuit the drain and leave other ops racing the rmSync. |
| 82 | const _pendingOps = new Set<Promise<unknown>>() |
| 83 | function track<T>(p: Promise<T>): Promise<T> { |
| 84 | _pendingOps.add(p) |
| 85 | void p.finally(() => _pendingOps.delete(p)).catch(() => {}) |
| 86 | return p |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Encapsulates async disk writes for a single task's output. |
no test coverage detected