Skip to main content

AsyncQueueOptions

Properties

PropertyTypeDescription
clearTimeout?(id) => void-
delayInMS?numberHow many mini-second to delay to run the next job
dropLast?booleanDrop the last one in the queue or the first one
handleTimeout?() => Promise<void>-
setTimeout?(callback, timeout) => number-
size?numberMax size of the queue, when it reaches this size, dropping mechanism starts. Drop the first/last one when overflow
throttleInMS?numberThrottle in mini-second
timeoutInMS?numberTimeout in mini-second