risingwave_common::util::panic

Function rw_catch_unwind

source
pub fn rw_catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R>
Expand description

Invokes a closure, capturing the cause of an unwinding panic if one occurs.

See the module-level documentation for why this is needed.