What happens when a channel abruptly closes? Or when it throws an error?
Erlang VM guarantees that [1]
- all processes are isolated. Fatal error in one process will not affect other processes. Crucial: it will not affect the VM.
- If you set up process monitoring, and that process dies for whatever reason the monitor will be notified, with the actual reason. This lets the monitor (the supervising process) decide what to do next: restart, do nothing, stop entirely etc.
- Other relevant things like processes suspended when waiting for messages, or running out of reductions (number of allocated calls and messages) so that other processes can be executed, a bunch optimizations in the VM about CPU caches etc.
So what you have is "kubernetes for processes, inside the VM".
And the reason you don't have supervision for either Go or Rust is simple. Both Go and Rust for some completely asinine reasons decided that an unhandled error should kill the entire running application, with no chance of recovery.
And later they both awkwardly bolted on a half-assed solution to catch panics. That's it. That's the extent of error handling and guarantees in those languages. Of course no one builds supervision trees there.
[1] Of course it's not a 100% guarantee, nothing is, but other languages don't have even that.