Extractor.stop()
This commit is contained in:
@ -51,14 +51,19 @@ export class Extractor {
|
||||
/**
|
||||
* Start the task chain.
|
||||
*/
|
||||
async start() {
|
||||
start() {
|
||||
return this._startTasks(0);
|
||||
}
|
||||
stop() {
|
||||
for (let i = 0; i < this._tasks.length; i++) {
|
||||
this._tasks[i].stop();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* restart from specified task, but don't restart the previous tasks.
|
||||
* @param {number} from where to restart the tasks, begins with 0
|
||||
*/
|
||||
async restart(from: number = 0) {
|
||||
restart(from: number = 0) {
|
||||
let id = this._checkTaskId(from, 0);
|
||||
if (id < 0) return;
|
||||
for (let i = id; i < this._tasks.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user