You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
retry method wraps a method that always returns a new Promise, so when the Promise of the first time method failed, retry will call the fetch method again and create a new Promise, and all work perfectly.
But if retry a Promise variable, things get wired.
With the example in the doc, https://github.com/google/promises/blob/master/g3doc/index.md#retry
retry method wraps a method that always returns a new Promise, so when the Promise of the first time method failed, retry will call the fetch method again and create a new Promise, and all work perfectly.
But if retry a Promise variable, things get wired.
code wrapped by Promise p will only run once, not twice, does this is a bug or feature?
The text was updated successfully, but these errors were encountered: