pub fn run_function<F: RecoverableFunction>(func: F) -> SpawnResult
Expand description
Executes a recoverable function within a panic-safe context.
func
: A function implementing theRecoverableFunction
trait.- Returns: A
SpawnResult
indicating the success or failure of the function execution.