(error: unknown)
| 58 | } |
| 59 | |
| 60 | error(error: unknown) { |
| 61 | this.hasError = error |
| 62 | if (this.readReject) { |
| 63 | const reject = this.readReject |
| 64 | this.readResolve = undefined |
| 65 | this.readReject = undefined |
| 66 | reject(error) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | return(): Promise<IteratorResult<T, unknown>> { |
| 71 | this.isDone = true |
no outgoing calls