()
| 70 | |
| 71 | return { |
| 72 | async lock() { |
| 73 | while (promise != null) await promise |
| 74 | promise = new Promise((r) => (resolve = r)) |
| 75 | }, |
| 76 | unlock(): void { |
| 77 | const unlock = resolve |
| 78 | promise = undefined |
nothing calls this directly
no outgoing calls
no test coverage detected