Skip to content

Instantly share code, notes, and snippets.

@musukvl
Created August 29, 2017 18:37
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 musukvl/2e8935d8d4f14608f32435dbd7098ac4 to your computer and use it in GitHub Desktop.
Save musukvl/2e8935d8d4f14608f32435dbd7098ac4 to your computer and use it in GitHub Desktop.
var foo = Rx.Observable.create(function (observer) {
console.log('Hello');
observer.next(42);
});
foo.subscribe(function (x) {
console.log(x);
});
foo.subscribe(function (y) {
console.log(y);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment