Linked Questions

Popular Questions

ConcatMap interupted when error in one observable

Asked by At

I am added my code below

    `Observable.from(modifiedNodes)
                        .concatMap(node => {

                            return this.Model.setData(node);
                        })
                        .subscribe(
                        () => {
                            NodeSaved++;
                        }`

Here if setdata is throwing error for any intermediate node, next sequence of nodes are not getting resumed. How we can modify it so that even if error for one node, the next sequence of nodes will be executed. I read about 'onerrorResumeNext' but not sure how to use it here? any help will be useful.

the setdata() is as:

public setData(node: INode): Observable<Object>{}

Related Questions