* Rejects all queued waiters and resets the waiting count to 0. * Does NOT release or alter any held permits — callers that already * received a release function must still call it. * The semaphore remains usable after cancellation.
()
| 58 | * The semaphore remains usable after cancellation. |
| 59 | */ |
| 60 | cancel(): void { |
| 61 | this._waiting = 0 |
| 62 | this._generation++ |
| 63 | this.sem.cancel() |
| 64 | } |
| 65 | } |
no outgoing calls
no test coverage detected