()
| 185 | } |
| 186 | } |
| 187 | const onError = () => { |
| 188 | resume(Effect.fail(this.onError(this.source.statusText))) |
| 189 | } |
| 190 | this.source.addEventListener("readystatechange", onReadyStateChange) |
| 191 | this.source.addEventListener("error", onError) |
| 192 | return Effect.sync(() => { |