RxJS Operators
Course Description
Archive : RxJS Operators Digital Download
Salepage : RxJS Operators
Delivery : Online With Any Device
Introduction
Each language-specific implementation of ReactiveX implements a set of operators. Although there is much overlap between implementations, there are also some operators that are only implemented in certain implementations. Also, each implementation tends to name its operators to resemble those of similar methods that are already familiar from other contexts in that language.
Chaining Operators
Most operators operate on an Observable and return an Observable. This allows you to apply these operators one after the other, in a chain. Each operator in the chain modifies the Observable that results from the operation of the previous operator.
There are other patterns, like the Builder Pattern, in which a variety of methods of a particular class operate on an item of that same class by modifying that object through the operation of the method. These patterns also allow you to chain the methods in a similar way. But while in the Builder Pattern, the order in which the methods appear in the chain does not usually matter, with the Observable operators order matters.
A chain of Observable operators do not operate independently on the original Observable that originates the chain, but they operate in turn, each one operating on the Observable generated by the operator immediately previous in the chain.
The Operators of ReactiveX
This page first lists what could be considered the -core operators in ReactiveX, and links to pages that have more in-depth information on how these operators work and how particular language-specific ReactiveX versions have implemented these operators.
Next is a -decision tree that may help you choose the operator that is most appropriate to your use case.
Finally, there is an alphabetical list of most of the operators available in the many language-specific implementations of ReactiveX. These link to the page that documents the core operator that most closely resembles the language-specific operator (so, for instance, the Rx.NET -SelectMany operator links to the documentation of the FlatMap ReactiveX operator, of which -SelectMany is the Rx.NET implementation).
If you want to implement your own operator, see Implementing Your Own Operators.
Contents
- Operators By Category
- A Decision Tree of Observable Operators
- An Alphabetical List of Observable Operators
Reviews
There are no reviews yet.