Skip to main content

AsyncQueueOptions

Properties

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