UFParallelQueueAction implements an action queue that can run a number of IUFQueueableAction actions at the same time.

The class extends UFQueueableAction so the queue can be placed into other queues if needed.

Hierarchy (view full)

Constructors

Accessors

  • get progress(): number
  • Gets the progress, include the progress of any running action.

    Returns number

  • get progressWeight(): number
  • Gets the progress weight.

    Returns number

Methods

  • Runs all stored actions at the same time.

    If the queue is already running, the method just returns true.

    Parameters

    Returns Promise<boolean>

    true if all actions run successful; false if one of the actions returned false or the token was cancelled.

    Throws

    an error if one or more actions threw an error.