You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Brooooooklyn You should be able to retry by multicasting progress events through a Subject. This is clever, but should do the job:
Observable.never().multicast(()=>newSubject(),(subject)=>subject.map((data)=>({type: 'xhr-progress', data })).merge(Observable.ajax({/* etc. */progressSubscriber: subject}).map((data)=>({type: 'xhr-response', data })))).takeUntil(this.pause$).repeatWhen(()=>this.resume$)
I was tried to implement a progress subscriber here:
https://github.com/Brooooooklyn/learning-rxjs/blob/article3/src/FileUploader.ts#L171
but it seems not so elegant, and I've tried such things:
But can not repeat
subscriber
when Error occurred.The text was updated successfully, but these errors were encountered: