ProcessQueue

ProcessQueue

new ProcessQueue()

Description:
  • A process queue manager.

    Adding process to the queue will guarante process are executed in sequence.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Classes

ProcessQueue

Methods

(async) _continueProcessing()

Description:
  • Continue the queue processing if no current process is defined.

Source:

_currentProcessor() → {FileUploader}

Description:
  • Return the current file uploader.

Source:
Returns:
Type
FileUploader

_discardCurrent()

Description:
  • Discard the current process and execute the next one if any.

Source:

addError(processName, errorMessage)

Description:
  • Adds a new pending upload to the queue.

Source:
Parameters:
Name Type Description
processName String

the file info

errorMessage String

the file processor

addPending(processName, processor)

Description:
  • Adds a new pending upload to the queue.

Source:
Parameters:
Name Type Description
processName String

the process name

processor function

the execution function