* Terminates a running process. * * @param {string} uuid - The process ID returned by Executor#start. * @returns {Promise } Resolves when the process has been stopped. * * @example * executor.stop(uuid);
(uuid)
| 142 | * executor.stop(uuid); |
| 143 | */ |
| 144 | stop(uuid) { |
| 145 | return new Promise((resolve, reject) => { |
| 146 | exec(resolve, reject, this.ExecutorType, "stop", [uuid]); |
| 147 | }); |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Checks if a process is still running. |