You have a pipe that lets you run values through it, one at a time, but at any given time. You can push things through it (observer.next(thing)) at one end and have one or more watcher function look at them on the other end (observable.subscribe(watcher)).
That single pipe alone is not very powerful, but a) you can have as many of these as you want and b) you also have other special pipes, called operators, which you can connect to this pipes in order to do much more powerful things with them, for example combine the stuff of multiple pipes, filter them, wait for things to fall in place and so on. Not to forget c), you also get functions to create those pipes from usual asynchronous actions, like events or Promises.
Software engineer with 4+ years of experience in building products for numerous domains like fin-tech, real estate, video streaming, retail, and now e-commerce.
Top comments (4)
You have a pipe that lets you run values through it, one at a time, but at any given time. You can push things through it (
observer.next(thing)
) at one end and have one or more watcher function look at them on the other end (observable.subscribe(watcher)
).That single pipe alone is not very powerful, but a) you can have as many of these as you want and b) you also have other special pipes, called operators, which you can connect to this pipes in order to do much more powerful things with them, for example combine the stuff of multiple pipes, filter them, wait for things to fall in place and so on. Not to forget c), you also get functions to create those pipes from usual asynchronous actions, like events or Promises.
Dude, you nailed it, thanks!
I'm too late to send comment but below article will help you.
dev.to/sagar/reactive-programming-...
is like x-ray and javascript but shortest