recoverable_spawn_catch_finally

Function recoverable_spawn_catch_finally 

Source
pub fn recoverable_spawn_catch_finally<F, E, L>(
    function: F,
    error_handle_function: E,
    finally: L,
) -> Result<(), Box<dyn Any + Send>>
Expand description

Spawns a recoverable function with error handling and finalization.

§Arguments

  • F - Function implementing RecoverableFunction.
  • E - Function implementing ErrorHandlerFunction.
  • L - Function implementing RecoverableFunction.

§Returns

  • SyncSpawnResult - The spawn operation result.