Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created September 23, 2015 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/c9fce5e7d6a0a1e0287b to your computer and use it in GitHub Desktop.
Save mattpodwysocki/c9fce5e7d6a0a1e0287b to your computer and use it in GitHub Desktop.
var cancel = Observable.fromEvent(button, 'click');
var source = observableFetch('someurl')
.takeUntil(cancel)
.retry(3)
.catch(defaultResponse)
.finally(doCleanup);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment