-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
carryoverConcurrencyCount
docs are vague
#99
Comments
Can you be more specific about what's unclear about it? For now, I would recommend looking at its tests at that might clarify how it should be used. // @Rafael09ED |
carryoverConcurrencyCount
docs are vague
|
@Rafael09ED that's the good stuff I was looking for in the readme. Thank you for adding that. Typically for options that are boolean, I recommend (and look for) a format such like:
The paragraph you replied with above would be an absolute value-add to the readme! |
Thank you for the good advice. How does this look for the new carryoverConcurrencyCountType: Whether any incomplete promises should be carried over into the new interval and applied against the Useful in preventing rate limit overages. |
This threw me off, because it doesn't seem to relate (with that verbiage). We'd been talking about tasks/promises starting and this tosses finishing in the mix. I'd tweak it a bit: ##### carryoverConcurrencyCount
Type: `boolean`\
Default: `false`
If `true`, specifies that an incomplete `Promise` should be carried over into the next interval and counted against the `intervalCap`. If `false`, an incomplete promise will continue to run independent of the next interval and will not count towards the `intervalCap`. |
Fixed by #100. |
Thanks for tackling this. |
Ahoy 🚢
The
carryoverConcurrencyCount
option could use some more verbose documentation. In toying with the package, it's not entirely clear what option value produce what behavior.Perhaps even an
examples
directory that covered how this works?The text was updated successfully, but these errors were encountered: