Last active
July 5, 2017 05:40
-
-
Save jami-i/2b22bbc2db1db3eeb558aa2e09ebb3e7 to your computer and use it in GitHub Desktop.
Observable.from() の要素それぞれを遅延させて送出する
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
import {Observable} from 'rxjs'; | |
Observable.from([1,2,3]) | |
.concatMap(x => Observable.of(x).delay(1000)) | |
.timeInterval() | |
.take(3) | |
.subscribe(console.log) | |
console.log("started") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment