Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 939 Bytes

faastjs.limits.retry.md

File metadata and controls

18 lines (13 loc) · 939 Bytes
id title hide_title
faastjs.limits.retry
Limits.retry property
true

faastjs > Limits > retry

Limits.retry property

Retry if the throttled function returns a rejected promise. retry can be a number or a function. If it is a number N, then up to N additional attempts are made in addition to the initial call. If retry is a function, it should return true if another retry attempt should be made, otherwise false. The first argument will be the value of the rejected promise from the previous call attempt, and the second argument will be the number of previous retry attempts (e.g. the first call will have value 0). Default: 0 (no retry attempts).

Signature:

retry?: number | ((err: any, retries: number) => boolean);