Skip to content

Instantly share code, notes, and snippets.

@sergzak022
Last active January 18, 2018 21:37
Show Gist options
  • Save sergzak022/dda2fa2c040b4093f05a643f16c74107 to your computer and use it in GitHub Desktop.
Save sergzak022/dda2fa2c040b4093f05a643f16c74107 to your computer and use it in GitHub Desktop.
RxJS: Switching and Exhausting
// will log 0,1,2,3,4,5 to console
Observable.timer(0, 200).take(6).subscribe((val) => console.log(val));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment