Erlang-style fault tolerance
Hi, this repository was linked from this thread. It looks cool!
I'm not sure if this is the right place to ask, but: I wonder if one could implement supervision trees (or a similar mechanism) on top of kabuki, using catch_unwind. On Reddit there was a concern that this could bring down other tasks running on the same thread:
[–]bjzaba 3 points 5 months ago
I guess the trouble is that bringing down and restarting a Rust thread is a much bigger deal than in Erlang. I like the idea of https://github.com/carllerche/kabuki, but I would be concerned about whether an actor could affect its peers running on the same thread pool... thoughts?
I guess this is more a question about Tokio than Kabuki itself though.
Using catch_unwind would work great. In fact, I would expect that the thread pool executor already does this.