Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. const delayed = Rx.Observable.timer(0).concat(source);
  2. const p = delayed.publishBehavior(-1);
  3. p.subscribe(observer("a"));
  4. p.connect();
  5. p.subscribe(observer("b"));
  6. setTimeout(() => p.subscribe(observer("c")), 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement