Skip to content

Efficient source sharing of an underlying stream

License

Notifications You must be signed in to change notification settings

mostjs/multicast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2ce6d7 · Sep 28, 2017

History

59 Commits
Sep 28, 2017
Sep 28, 2017
Sep 28, 2017
Sep 28, 2017
Mar 2, 2016
Sep 28, 2017
Sep 28, 2017
Mar 13, 2016
Aug 18, 2016
Feb 3, 2016
Sep 25, 2017
Sep 28, 2017
Aug 18, 2016
Dec 1, 2016

Repository files navigation

⚠️ Deprecated ⚠️

@most/multicast is deprecated.

Support and maintenance will cease when @most/core 1.0 is released. Meanwhile, only critical bug fixes will be released.

Its functionality is currently available in @most/core and will also be available in most 2.0.

@most/multicast

Efficient source sharing of an underlying stream to multiple observers.

API

multicast :: Stream a → Stream a

Returns a stream equivalent to the original, but which can be shared more efficiently among multiple consumers.

stream:             -a-b-c-d->
multicast(stream):  -a-b-c-d->

Using multicast allows you to build up a stream of maps, filters, and other transformations, and then share it efficiently with multiple observers.