Skip to content

Instantly share code, notes, and snippets.

@benlesh benlesh/example2.js
Created Aug 23, 2017

What would you like to do?
function getErroringPromise() {
console.log('getErroringPromise called');
return Promise.reject(new Error('sad'));
.subscribe(x => console.log);
// logs "getErroringPromise called" 4 times (once + 3 retries), then errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.