Skip to content

Instantly share code, notes, and snippets.

@wilfrem
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilfrem/0f961c9e86979e2837a8 to your computer and use it in GitHub Desktop.
Save wilfrem/0f961c9e86979e2837a8 to your computer and use it in GitHub Desktop.
cold observable
var rx = require("rx");
var s = new rx.Subject();
var stream = s.tap(function(){console.log("side effect");});
stream.subscribeOnNext(function(){});
stream.subscribeOnNext(function(){});
s.onNext("foo");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment