* Lists the processes currently managed by this executor. * * @returns {Promise >}
()
| 176 | * @returns {Promise<Array<{id: string, command: string, alpine: boolean, startedAt: number, background: boolean}>>} |
| 177 | */ |
| 178 | listProcesses() { |
| 179 | return new Promise((resolve, reject) => { |
| 180 | exec( |
| 181 | (processes) => resolve(processes.map((process) => ({ |
| 182 | ...process, |
| 183 | background: this.ExecutorType === "BackgroundExecutor", |
| 184 | }))), |
| 185 | reject, |
| 186 | this.ExecutorType, |
| 187 | "listProcesses", |
| 188 | [] |
| 189 | ); |
| 190 | }); |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Lists all running OS processes under the app's user ID. |
no test coverage detected