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