Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active August 7, 2017 18:52
Show Gist options
  • Save cartant/a8bfb78e617e0a1ee018c957ae49ed26 to your computer and use it in GitHub Desktop.
Save cartant/a8bfb78e617e0a1ee018c957ae49ed26 to your computer and use it in GitHub Desktop.
RxSpy.spy();
RxSpy.log(/user-.+/);
RxSpy.log('users');
const names = ['benlesh', 'kwonoj', 'staltz'];
const users = Rx.Observable.forkJoin(...names.map(name =>
Rx.Observable
.ajax
.getJSON(`https://api.github.com/users/${name}`)
.tag(`user-${name}`)
))
.tag('users');
users.subscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment