Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TimerObservable.create(0, 1000)
- .takeWhile(() => this.alive)
- .subscribe(() => {
- const timestamp: Date = new Date();
- console.log(timestamp.getMilliseconds());
- // .. Call task (is also observable)
- });
Add Comment
Please, Sign In to add comment