MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / listProcesses

Method listProcesses

src/plugins/terminal/www/Executor.js:178–191  ·  view source on GitHub ↗

* Lists the processes currently managed by this executor. * * @returns {Promise >}

()

Source from the content-addressed store, hash-verified

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.

Callers 2

runExecutorTestsFunction · 0.45

Calls 2

resolveFunction · 0.85
execFunction · 0.50

Tested by

no test coverage detected