Skip to content

Instantly share code, notes, and snippets.

@jami-i
Last active July 5, 2017 05:40
Show Gist options
  • Save jami-i/2b22bbc2db1db3eeb558aa2e09ebb3e7 to your computer and use it in GitHub Desktop.
Save jami-i/2b22bbc2db1db3eeb558aa2e09ebb3e7 to your computer and use it in GitHub Desktop.
Observable.from() の要素それぞれを遅延させて送出する
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