recoverable_spawn_catch

Function recoverable_spawn_catch 

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

Spawns a recoverable function with error handling.

§Arguments

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

§Returns

  • SyncSpawnResult - The spawn operation result.