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