(error: Error)
| 53 | } |
| 54 | |
| 55 | error(error: Error): void { |
| 56 | this.hasError = error |
| 57 | if (this.readReject) { |
| 58 | const reject = this.readReject |
| 59 | this.readResolve = undefined |
| 60 | this.readReject = undefined |
| 61 | reject(error) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | async return(): Promise<IteratorResult<T>> { |
| 66 | this.isDone = true |
no outgoing calls
no test coverage detected