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
Currently only synchronous calls are supported in memoize function. Would it make sense to also add support or dedicated function for async/Promise memoization?
Caching promises instead of their final results can lead to potential memory leaks so having option of tool which prevents this by proper memoization could help in preventing this problem.
Sync implementation is pretty similar to basic async memoization so it could be easily adapted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Currently only synchronous calls are supported in
memoizefunction. Would it make sense to also add support or dedicated function for async/Promise memoization?Caching promises instead of their final results can lead to potential memory leaks so having option of tool which prevents this by proper memoization could help in preventing this problem.
Sync implementation is pretty similar to basic async memoization so it could be easily adapted.
All reactions