Reactive streams in action

So far, we have discussed the fact that reactive programming is a data stream. In the previous sections, we have also discussed how streams work and how these streams travel in a timely manner. We have seen an example of events and discussed the data streams in a reactive program. Now, let's go ahead with the same example and look at how two streams work with various operations.

In the next example, we have two observable streams of an integer data type collection. Please note that we are using the pseudo code in this section to explain the behavior and the way in which these collections of data streams work.

The following diagram represents two observable streams. The first stream, Observer1, contains numbers ...

Get Hands-On Design Patterns with C# and .NET Core 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.