(scope: ServerScope, directory: string)
| 43 | state.set(id, { status: "pending" }) |
| 44 | }, |
| 45 | ready(scope: ServerScope, directory: string) { |
| 46 | const id = key(scope, directory) |
| 47 | const next = { status: "ready" } as const |
| 48 | state.set(id, next) |
| 49 | const waiter = waiters.get(id) |
| 50 | if (!waiter) return |
| 51 | waiters.delete(id) |
| 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 |
no test coverage detected