(
waiters: Set<{ readonly resume: (exit: Exit.Exit<A, any>) => void }>,
exit: Exit.Exit<A, any>
)
| 5355 | } |
| 5356 | /** Taken before any resumes: a caller resumed here can run before this returns, and call again. */ |
| 5357 | const resumeAll = <A>( |
| 5358 | waiters: Set<{ readonly resume: (exit: Exit.Exit<A, any>) => void }>, |
| 5359 | exit: Exit.Exit<A, any> |
| 5360 | ): void => { |
| 5361 | if (waiters.size === 0) return |
| 5362 | const taken = Array.from(waiters) |
| 5363 | waiters.clear() |
| 5364 | for (const waiter of taken) waiter.resume(exit) |
| 5365 | } |
| 5366 | |
| 5367 | // -- registry and index ----------------------------------------------------- |
| 5368 | /** First wins: the first definition under a name pins everything about the query. */ |
no test coverage detected