Function async_recoverable_spawn_catch

Source
pub async fn async_recoverable_spawn_catch<F, E>(
    function: F,
    error_handle_function: E,
) -> Result<(), JoinError>
Expand description

Spawns a recoverable function with an error-handling function in a new thread.

  • function: The primary function to execute, implementing the AsyncRecoverableFunction trait.
  • error_handle_function: A function to handle errors, implementing the AsyncErrorHandlerFunction trait.