()
| 260 | let remaining = workingTaskIds.length |
| 261 | |
| 262 | const onIdle = (): void => { |
| 263 | remaining-- |
| 264 | if (remaining === 0) { |
| 265 | // biome-ignore lint/nursery/noFloatingPromises: resolve is a callback, not a Promise |
| 266 | resolve() |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | // Register callback on each working teammate |
| 271 | // Check current isIdle state to handle race where teammate became idle |
no test coverage detected