Minor cosmetic change
This commit is contained in:
parent
50e15aaf57
commit
f060b1bac9
@ -91,6 +91,16 @@ class ExecutionController<RS> {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Run a single step of execution
|
||||
* @returns Result of execution
|
||||
*/
|
||||
executeStep(): StepExecutionResult<RS> {
|
||||
this._result = this._engine.executeStep();
|
||||
this._result.signal = "paused";
|
||||
return this._result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the loaded program until stopped.
|
||||
* @param param0.interval Interval between two execution steps
|
||||
@ -99,7 +109,6 @@ class ExecutionController<RS> {
|
||||
async executeAll({ interval, onResult }: ExecuteAllArgs<RS>) {
|
||||
// Clear paused state
|
||||
this._isPaused = false;
|
||||
console.log(interval);
|
||||
|
||||
// Run execution loop using an Interval
|
||||
this._execInterval = setInterval(() => {
|
||||
@ -142,16 +151,6 @@ class ExecutionController<RS> {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run a single step of execution
|
||||
* @returns Result of execution
|
||||
*/
|
||||
executeStep(): StepExecutionResult<RS> {
|
||||
this._result = this._engine.executeStep();
|
||||
this._result.signal = "paused";
|
||||
return this._result;
|
||||
}
|
||||
}
|
||||
|
||||
export default ExecutionController;
|
||||
|
Loading…
x
Reference in New Issue
Block a user