(scope: ServerScope, directory: string, message: string)
| 52 | waiter.resolve(next) |
| 53 | }, |
| 54 | failed(scope: ServerScope, directory: string, message: string) { |
| 55 | const id = key(scope, directory) |
| 56 | const next = { status: "failed", message } as const |
| 57 | state.set(id, next) |
| 58 | const waiter = waiters.get(id) |
| 59 | if (!waiter) return |
| 60 | waiters.delete(id) |
| 61 | waiter.resolve(next) |
| 62 | }, |
| 63 | wait(scope: ServerScope, directory: string) { |
| 64 | const id = key(scope, directory) |
| 65 | const current = state.get(id) |
no test coverage detected