What is the difference between event-stream.through and event-stream.map

According to the documentation in event-stream it seems that the difference in these two methods is synchronization or asynchronous mode. But I'm still not sure what the difference really means.

+3
source share
1 answer

Well, the difference in principle is completely different:

As long as the stream is throughonly re-emitted, the stream mapcan also change data. The first of them just emits what it receives, the data is sent 1: 1 to the subscriber. The latter has an additional conversion step, so the data can be 1: 1, but not necessary.

, through , map mapping.

+4

All Articles