async_recoverable_spawn_catch_finally

Function async_recoverable_spawn_catch_finally 

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

Spawns a recoverable function with error handling and finalization.

§Arguments

  • F - Function implementing AsyncRecoverableFunction.
  • E - Function implementing AsyncErrorHandlerFunction.
  • L - Function implementing AsyncRecoverableFunction.

§Returns

  • AsyncSpawnResult - The spawn operation result.