Skip to content

Instantly share code, notes, and snippets.

@cartant
Created August 23, 2017 06:10
Show Gist options
  • Save cartant/816afa96e2d8b95f04f86a81bfe97edf to your computer and use it in GitHub Desktop.
Save cartant/816afa96e2d8b95f04f86a81bfe97edf to your computer and use it in GitHub Desktop.
const p = source.publishLast();
p.subscribe(observer("a"));
p.connect();
p.subscribe(observer("b"));
setTimeout(() => p.subscribe(observer("c")), 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment