O'Reilly logo

Hands-On Design Patterns with C# and .NET Core by Jeffrey Chilberto, Gaurav Aroraa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required