()
| 44 | } |
| 45 | |
| 46 | close(): void { |
| 47 | if (this.closed) return; |
| 48 | this.closed = true; |
| 49 | if (this.waiting) { |
| 50 | const w = this.waiting; |
| 51 | this.waiting = null; |
| 52 | w.resolve({ value: undefined as T, done: true }); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | error(err: unknown): void { |
| 57 | if (this.closed) return; |
no outgoing calls
no test coverage detected