Created
March 26, 2017 18:45
-
-
Save stevermeister/ebfabc8b15aacd8ad2aaae9b2a92b98d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getPostOne$ = Rx.Observable.timer(1000).mapTo({id: 1}); | |
const getPostTwo$ = Rx.Observable.timer(2000).mapTo({id: 2}); | |
Rx.Observable.forkJoin(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