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
However, when calling 'save' on this cache, I can't know which are the resolved promises. I have two choices :
Waiting to complete every promise : it would be wrong, because the cache need to be saved now, that's the purpose of the function, and because if promise are created after calling save, then they won't be saved (consistancy issue).
Adding a flag to the promises manually when they are fullfilled. Not very clean.
Could it be possible to add to Deferred a getter of the current status ?
The text was updated successfully, but these errors were encountered:
👍
I would need the same feature.
In my scenario there's a risk to call twice a _deferred.reject() because the nature of the application.
Is there a way other than using a flag?
Hi,
I'm currently writing a promised-based cache.
However, when calling 'save' on this cache, I can't know which are the resolved promises. I have two choices :
Could it be possible to add to Deferred a getter of the current status ?
The text was updated successfully, but these errors were encountered: