dedupe
constdedupe:object
The dedupe helpers every add() picks from.
Type Declaration
Section titled “Type Declaration”debounce()
Section titled “debounce()”
readonlydebounce(key,wait):Dedupe
Debounce: the job waits wait before it runs, and each repeat within that
time replaces its payload and restarts the wait, so only the last one runs.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”none()
Section titled “none()”
readonlynone():Dedupe
No dedupe: every call is a new job. Say so explicitly.
Returns
Section titled “Returns”until()
Section titled “until()”
readonlyuntil(key):Dedupe
Until settled: repeats are dropped while the first job with this key is waiting, delayed or running (retries included); once it completes or fails for good, the next one is a new job.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”window()
Section titled “window()”
readonlywindow(key,ttl):Dedupe
Throttle: the first job with this key runs; repeats within ttl of it
are dropped, whether the first job is still waiting, already finished, or
failed and kept in the dead-letter set. After ttl a repeat is a new job.