Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Last active March 25, 2017 17:39
Show Gist options
  • Save stevermeister/633ed30d486a22234a97e4fe2a1f7247 to your computer and use it in GitHub Desktop.
Save stevermeister/633ed30d486a22234a97e4fe2a1f7247 to your computer and use it in GitHub Desktop.
const getPostOne$ = Rx.Observable.timer(3000).mapTo({id: 1});
const getPostTwo$ = Rx.Observable.timer(1000).mapTo({id: 2});
Rx.Observable.concat(getPostOne$, getPostTwo$).subscribe(res => console.log(res));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment