Global

Type Definitions

QueueWaitOptions

Source:
Properties:
Name Type Attributes Description
size Number <optional>
Wait until the available items meets or exceeds this value.
Type:
  • Object

RateLimiterSpec

Source:
Properties:
Name Type Attributes Description
limit Number The maximum number of calls in a period
period Number The period in milliseconds for constraining the {limit}
spread boolean <optional>
Instead of racing to the limit and then blocking until the period resets, delay each call so the eventual usage is spread out over the period.
Type:
  • Object

UnorderedWorkQueueOptions

Source:
Properties:
Name Type Attributes Description
maxPending Number <optional>
The maximum number of pending promises to enqueue before blocking.
maxFulfilled Number <optional>
The maximum number of unclaimed fulfilled results to allow before blocking any more calls to put.
allowErrors boolean <optional>
When set to true rejected jobs will just return their Error instead of throwing.
Type:
  • Object