Core synchronous queue with an example worker

This commit is contained in:
2020-11-02 10:51:08 +00:00
parent d6b5b033f2
commit 0a30f2d466
16 changed files with 1103 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
module.exports = function AlreadyInProgress(extra) {
Error.captureStackTrace(this, this.constructor)
this.name = this.constructor.name
this.message = 'calculation request is already in progress'
if (typeof extra !== 'undefined') {
this.extra = extra
}
}
require('util').inherits(module.exports, Error)