Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Last active January 14, 2017 04:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/135d7333fec9675e1698c797f38a4bc7 to your computer and use it in GitHub Desktop.
Save ORESoftware/135d7333fec9675e1698c797f38a4bc7 to your computer and use it in GitHub Desktop.
const Rx = require('rxjs');
console.log(1);
new Promise(function(resolve,reject){
console.log(2);
resolve();
});
console.log(3);
const obs = Rx.Observable.create(sub => {
console.log(4);
sub.next('foo');
});
// need to subscribe!
obs.subscribe();
console.log(5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment