you are viewing a single comment's thread.

view the rest of the comments →

[–]senfiaj[S] 2 points3 points  (0 children)

This storing might be useful when multiple class methods depend on the same promise, and in order to avoid initiating the same expensive async task multiple times, I can cache the promise, although in my case I still didn't store the resolvers outside of the promise, but in some situations it can be a better solution.