huh-foundation / huh

programmer-friendly langauge. Contribute to Huh development !
Apache License 2.0
4 stars 0 forks source link

Proposal: Add support for kill, kill all #5

Open esperar opened 6 months ago

esperar commented 6 months ago

The kill() method takes the PID of a process built with huh as an argument and terminates the process.

The kill_all() method terminates all processes currently built with huh. It can be used in emergency situations. I'm not sure what that emergency situation is, though.

kill(the PID)
kill_all()
onee-only commented 6 months ago

I think we need revive() which revives killed processes. In case it wasn't actually emergency and we might have mistaken.

esperar commented 6 months ago

Nice, Can you create a new issue? Base on that revive()