Scheduling
Programming observable sequences is a powerful way to achieve a highly modularized programming experience. Although this offers high flexibility, an observable sequence is single-threaded by default and is similar to a lot of other CLR objects. This means that although a sequence can push messages to multiple subscribers, this operation happens in the same thread where the messages originate and then the messages reach all the subscribers, sequentially following their subscription order.
This means that using an observable sequence instead of any other .NET object does not convert automatically our code into a multithreaded one.
Luckily, to address this automatic multithreading need in the Rx world, there are Schedulers
. These are objects ...
Get Reactive Programming for .NET Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.