Skip to content

Instantly share code, notes, and snippets.

@acnalesso
Created December 1, 2014 18:52
Show Gist options
  • Save acnalesso/0bbb06598669ad15a09d to your computer and use it in GitHub Desktop.
Save acnalesso/0bbb06598669ad15a09d to your computer and use it in GitHub Desktop.
Backburner's Queue object
function Queue(name, options, globalOptions) {
this.name = name;
this.globalOptions = globalOptions;
this.options = options;
this._queue = [];
this.targetQueues = Object.create(null);
this._queueBeingFlushed = undefined;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment