Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active July 20, 2019 22:45
Show Gist options
  • Save cartant/e783008e94c6adcef98d253b1d7f6b31 to your computer and use it in GitHub Desktop.
Save cartant/e783008e94c6adcef98d253b1d7f6b31 to your computer and use it in GitHub Desktop.
const source = instrument(Observable.interval(100));
const published = source.publish();
const a = published.take(1).subscribe(observer("a"));
const b = published.take(1).subscribe(observer("b"));
const subscription = published.connect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment