-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export "in-flight only memoizer" #53
Comments
I would prefer to fix main signature. Maybe a new option instead of setting @Richienb Any thoughts on this? |
I don't think that's a big ask. The documentation would look like memInFlight(fn, options)Like mem, but just while pending. The options are the same except you can't pass a custom cache. Same for the decorator. I do agree it's not optimal but… in the code it still reads better than any option could, IMHO |
|
I think |
Let's go with |
I don't know what this means:
I have to document it every time:
The module can export a more readable helper instead:
Note: the types of
opts
should excludecache
Some tags could also be added to package.json
The text was updated successfully, but these errors were encountered: