(reason)
| 13454 | this.state = "ongoing"; |
| 13455 | } |
| 13456 | terminate(reason) { |
| 13457 | if (this.state !== "ongoing") { |
| 13458 | return; |
| 13459 | } |
| 13460 | this.state = "terminated"; |
| 13461 | this.connection?.destroy(reason); |
| 13462 | this.emit("terminated", reason); |
| 13463 | } |
| 13464 | // https://fetch.spec.whatwg.org/#fetch-controller-abort |
| 13465 | abort(error) { |
| 13466 | if (this.state !== "ongoing") { |
no test coverage detected