Do you ever program in TypeScript? Do you use the Promise
API? Have you ever used the new async/await functions in
TypeScript (or JavaScript) with inner-asynchronous request code? And have you
ever wondered how you can achieve similar results using RxJS? In this
post, we’ll explore how to take advantage of RxJS operators as part of an
asynchronous workflow, and how to reduce the complexity of having inner
subscriptions.
The Observable API is extraordinarily useful for
asynchronous programming. It enables us to decouple data sources from
data processing targets, create sophisticated processing pipelines, and create
deterministic sequences. In RxJS, there are also a number of
functions for creating Observable instances. This post will give you a brief
overview of the history of the Reactive Extensions (RX), as well as
an introduction to one of my favorite RX operators,
fromEventPattern.