mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
chore: Add the process tree destroyer
This commit is contained in:
@@ -137,6 +137,7 @@ export class Daemons<Manifest extends SDKManifest, Ids extends string> {
|
||||
}
|
||||
return {
|
||||
async term(options?: { signal?: Signals; timeout?: number }) {
|
||||
console.error("Bluj Daemons term")
|
||||
await Promise.all(
|
||||
Object.values<Promise<DaemonReturned>>(daemonsStarted).map((x) =>
|
||||
x.then((x) => x.term(options)),
|
||||
@@ -144,6 +145,7 @@ export class Daemons<Manifest extends SDKManifest, Ids extends string> {
|
||||
)
|
||||
},
|
||||
async wait() {
|
||||
console.error("Bluj Daemons wait")
|
||||
await Promise.all(
|
||||
Object.values<Promise<DaemonReturned>>(daemonsStarted).map((x) =>
|
||||
x.then((x) => x.wait()),
|
||||
|
||||
Reference in New Issue
Block a user