* Set an error on the iterable
(err: Error)
| 57 | * Set an error on the iterable |
| 58 | */ |
| 59 | setError(err: Error): void { |
| 60 | if (this.isDone) { |
| 61 | return |
| 62 | } |
| 63 | |
| 64 | this.error = err |
| 65 | this.isDone = true |
| 66 | this.cleanup() |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Cleanup waiting consumers |
no test coverage detected