O'Reilly logo

Mastering Reactive JavaScript by Erich de Souza Oliveira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

More about Operators

In the last chapter, we learned how to handle errors in our reactive applications; we saw that, if we do nothing to handle errors on our observables, that they will be propagated, notifying all the observers of that observable and stopping the observable without ever calling the onCompleted() method of the observers. Besides that we learned a set of operators to change this behavior and have more control over errors, as follows:

  • catch()
  • onErrorResumeNext()
  • retry()
  • mergeDelayError()

These operators give us more control over when to propagate the error and what to do in the event of an error.

Another really important lesson from the last chapter was the implementation of tests for programs using functional reactive programming, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required