Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guidelines/correctness/M-PANIC-CONTINUATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ fn main() {

Although the example above is slightly contrived, the side effects and interactions of a caught panic can be harder to identify, can have wide blast radius, and be subtle.

Systems where many unrelated tasks are in flight (e.g., server request handlers) can use `catch_unwind` on a per-request basis, but should still promote an application restart after a request handler caused a panic. The purpose of `catch_unwind` here is not to continue execution indefinitely, but to allow all other requests to gracefully finish.
Systems where many unrelated tasks are in flight (e.g., server request handlers or runtime worker threads) should promote an application restart after an observed panic.
Loading