()
| 272 | } |
| 273 | } |
| 274 | const onError = () => { |
| 275 | resume(Effect.fail(this.onError(this.source.statusText))) |
| 276 | } |
| 277 | this.source.addEventListener("readystatechange", onReadyStateChange) |
| 278 | this.source.addEventListener("error", onError) |
| 279 | return Effect.sync(() => { |