sindresorhus / p-memoize

Memoize promise-returning & async functions
MIT License
396 stars 30 forks source link

Just use `mem` #10

Closed fregante closed 5 years ago

fregante commented 5 years ago

🤷‍♂️

Breaking change both for p-memoize (because rejections are cached by default) and for mem because mem.clear(() => {}) now throws.

But probably the next breaking change for mem would probably be dropping the cachePromiseRejection there and moving it to p-memoize, so p-memoize has a reason to exist.