(startUrl: string)
| 299 | } |
| 300 | |
| 301 | abort(startUrl: string) { |
| 302 | if (this.docsIndexingQueue.has(startUrl)) { |
| 303 | const status = this.statuses.get(startUrl); |
| 304 | if (status) { |
| 305 | this.handleStatusUpdate({ |
| 306 | ...status, |
| 307 | status: "aborted", |
| 308 | progress: 0, |
| 309 | description: "Canceled", |
| 310 | }); |
| 311 | } |
| 312 | this.docsIndexingQueue.delete(startUrl); |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | // Used to check periodically during indexing if should cancel indexing |
| 317 | shouldCancel(startUrl: string, startedWithEmbedder: string) { |
no test coverage detected