Synchronous Vs. Asynchronous Data Sources

Distinguish between synchronous and asynchronous data sources, which is essential when dealing with reactive streams.

One common misunderstanding, especially when testing reactive streams, is treating synchronous data sources as asynchronous. So, understanding the difference between these types of data sources is quite essential before moving forward.

Synchronous data sources

Every reactive library offers the possibility of creating a stream from different types of data. For this example, we are going to take into consideration a simple array [2, 12, 35] that will be wrapped into an observable:

Get hands-on with 1200+ tech skills courses.