|
|
|
|
|
by Manishearth
3138 days ago
|
|
In Rust a panic brings down a single thread (unless you have it set to panic=abort, which is the case in firefox but not elsewhere). Panics can also be "caught" like exceptions, though this is not something you're supposed to use to implement exception handling. The idea is that if you want to make your application robust you can catch these panics near the top and try to recover. Often panics bringing down a single thread will bring down other threads that try to read messages from it and have declared that they will panic if that is not possible. (.recv().unwrap() is a common idiom). So it depends on how you use it. And "monitoring system" is assuming the context of a server side application. |
|