Exercise - Connect Operator
Exercise
The goal of this exercise is to learn how to create a multicasted Observable using the connect() operator.
- Open exercise on codesandbox.
- I've created the
sourceObservable that synchronously emits next notifications whose integer values are 1 through 5. - Use the
connect()operator and specify theselectorfunction. - Within the
selectorfunction, filter next notification values from the not-yet-connectedmulticastedObservable for even numbers only. - Finally,
subscribe()to the connected Observable.