Skip to content

Instantly share code, notes, and snippets.

@nitayneeman
Last active September 16, 2017 13:55
Show Gist options
  • Save nitayneeman/18669114a7f439c7a793dd2253ea8c5a to your computer and use it in GitHub Desktop.
Save nitayneeman/18669114a7f439c7a793dd2253ea8c5a to your computer and use it in GitHub Desktop.
Rx.Observable
.interval(1000)
.first((value) => value === 3)
.subscribe(
(value) => console.log(`Emitted value: ${value}`),
(error) => console.error(error),
() => console.log('Completed')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment