Docs (4.0.0)
class Scheduler method

createQueue

Creates a new asynchronous task queue with the provided name and options.

createQueue(name: string | symbol, replace?: boolean, config?: ConfigOptions.Arg<AsyncTaskQueue.Options>): AsyncTaskQueue

Parameters

  • name — The name of the task queue, or a unique symbol to identify it
  • replace — True if any existing queues with the same name should be replaced
  • config — An options object or configuration function to set additional options for the task queue

Return value

A new AsyncTaskQueue instance

Related