Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created July 1, 2016 05:49
Show Gist options
  • Save tkssharma/e6d06a065261ec897e08e2bb61b72785 to your computer and use it in GitHub Desktop.
Save tkssharma/e6d06a065261ec897e08e2bb61b72785 to your computer and use it in GitHub Desktop.
var obs = Rx.Observable.interval(500).take(5)
.do(i => console.log("obs value "+ i) );
obs.subscribe(value => console.log("observer 1 received " + value));
obs.subscribe(value => console.log("observer 2 received " + value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment