API Reference

An object that manages a list of function calls and contains various methods for execution.

type Queue<T extends Func> = {
  queue: unknown[]
  enqueue: (...args: Parameters<T>) => void
  executeOne: Function
  executeAll: (ignoreErrors?: boolean) => unknown
  breakOut: Function
}

queue
the list of function calls

enqueue()
adds another function call to the queue

executeOne()
executes the first function call in the queue

executeAll()
executes all function calls in the queue

breakOut()
stops executing further function calls