-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Status: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: DocumentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Description
There are only 2 utility functions (onRateLimit
and onSecondaryRateLimit
) to define to use this library, yet they remain relatively cryptic despite the example provided in the README.
- What is the relationship between those 2 functions?
- When are those 2 functions respectively called?
- How does the returned value affect their execution?
- What are all the "sub-parameters" of the
options
parameter? - Which of those parameters have default values, and what are those values?
Currently, it seems like I can mostly only imply these:
onRateLimit
will execute a retry if it returnstrue
(but what aboutfalse
? and whatonSecondaryRateLimit
?)retryAfter
uses the seconds as its time unit (why not include that information directly in the variable name? as per its name, this could even be interpreted as being a boolean we could use to trigger yet another retry)retryCount
is a counter which starts at 0 and gets incremented by 1 afteronRateLimit
is calledoptions
contains at least 2 values:url
andmethod
(but what even ismethod
?)
There is already #76 but it seems to mostly relate to GHE (and it's been open for so long anyways). Personally, I built a tool that extensively relies on plugin-throttling
and I would assume most of my users are non-GHE, so I'm creating this issue to hopefully cover my case as well.
Metadata
Metadata
Assignees
Labels
Status: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: DocumentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Type
Projects
Status
🔥 Backlog