Skip to content

Instantly share code, notes, and snippets.

@LironHazan
Created October 16, 2020 10:23
Show Gist options
  • Save LironHazan/9ae2395f7ee2ba6f81b936b6352fa94e to your computer and use it in GitHub Desktop.
Save LironHazan/9ae2395f7ee2ba6f81b936b6352fa94e to your computer and use it in GitHub Desktop.
Matan Sanders example for rxjs post
counter = 0;
constructor() {
interval(100)
.pipe(
tap(() => this.counter++),
takeWhile(() => this.counter < 100)
)
.subscribe();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment