Skip to content

Instantly share code, notes, and snippets.

@sergzak022
Created January 18, 2018 21:39
Show Gist options
  • Save sergzak022/5d2a55ad4f35453bd89879fe7c213ac9 to your computer and use it in GitHub Desktop.
Save sergzak022/5d2a55ad4f35453bd89879fe7c213ac9 to your computer and use it in GitHub Desktop.
RxJS: Switching and Exhausting
function multBy2Delayed(number) {
// I take 1000ms to multiply your number by two
return Observable.timer(1000).map(() => number * 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment