pkrumins / node-tree-kill

kill trees of processes
MIT License
333 stars 37 forks source link

[feature request] support `sync` mode #35

Open aprilandjan opened 3 years ago

aprilandjan commented 3 years ago

Hi, thanks for your helpful module! This is a feature request. Can we have sync mode so I can correctly block my other code executions while using? For example:

const treeKill = require('tree-kill').sync;

console.log('try kill', pid);
treeKill(pid);
console.log(pid, 'killed')
vladpuz commented 8 months ago

I switched to this:

https://github.com/nktnet1/kill-sync