Skip to content

Flattens a stream of streams. The result stream reflects changes from the last stream only.

License

Notifications You must be signed in to change notification settings

paldepind/flyd-switchlatest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flyd-switchlatest

Flattens a stream of streams. The result stream reflects changes from the last stream only.

Signature

Stream (Stream a) -> Stream b

Usage

var chatrooms = flyd.stream();
var messagesStreams = flyd.map(function(id) {
  return createMessageStream(id);
}, chatrooms);
var currentMessages = switchLatest(messagesStreams);

About

Flattens a stream of streams. The result stream reflects changes from the last stream only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published