Skip to content

stopTree

stopTree(leader, signal, host, graceMs?): Promise<boolean>

Stop leader and every process it started, waiting until they are gone. signal goes to the whole process group first (POSIX); whatever is still there after graceMs is killed. Resolves true when the tree is gone, false when something survived the kill (a process this user may not signal).

ITreeLeader

Signals

ITreeHost

number = STOP_GRACE_MS

Promise<boolean>