Advertisement
Guest User

Untitled

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