|
|
|
@ -35,6 +35,8 @@ class TesseractWorker {
@@ -35,6 +35,8 @@ class TesseractWorker {
|
|
|
|
|
terminate(){ |
|
|
|
|
if(this.worker) adapter.terminateWorker(this); |
|
|
|
|
this.worker = null; |
|
|
|
|
this._currentJob = null; |
|
|
|
|
this._queue = []; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_delay(fn){ |
|
|
|
@ -70,4 +72,4 @@ class TesseractWorker {
@@ -70,4 +72,4 @@ class TesseractWorker {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
module.exports = create(); |
|
|
|
|
module.exports = create(); |
|
|
|
|