Skip to main content

with_suppression

Function with_suppression 

Source
pub fn with_suppression<R, F: FnOnce() -> R>(body: F) -> R
Expand description

Run body with the suppression flag set. The flag resets to the prior value on drop — even on panic — so a panicking trigger doesn’t leave the calling thread permanently suppressed.