pub fn recoverable_spawn_catch<F, E>(
function: F,
error_handle_function: E,
) -> JoinHandle<()>where
F: RecoverableFunction,
E: ErrorHandlerFunction,Expand description
Spawns a recoverable function with an error-handling function in a new thread.
function: The primary function to execute, implementing theRecoverableFunctiontrait.error_handle_function: A function to handle errors, implementing theErrorHandlerFunctiontrait.- Returns: A
JoinHandle<()>that can be used to manage the spawned thread.