pub async fn async_recoverable_spawn_catch<F, E>(
function: F,
error_handle_function: E,
) -> Result<(), JoinError>where
F: AsyncRecoverableFunction,
E: AsyncErrorHandlerFunction,Expand description
Spawns a recoverable function with an error-handling function in a new thread.
function: The primary function to execute, implementing theAsyncRecoverableFunctiontrait.error_handle_function: A function to handle errors, implementing theAsyncErrorHandlerFunctiontrait.