Guest User

Untitled

a guest
Jun 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. TimerObservable.create(0, 1000)
  2. .takeWhile(() => this.alive)
  3. .subscribe(() => {
  4. const timestamp: Date = new Date();
  5. console.log(timestamp.getMilliseconds());
  6. // .. Call task (is also observable)
  7. });
Add Comment
Please, Sign In to add comment