async_run_function

Function async_run_function 

Source
pub async fn async_run_function<F>(func: F) -> Result<(), JoinError>
Expand description

Executes a recoverable function within a panic-safe context.

§Arguments

  • F - Function implementing AsyncRecoverableFunction.

§Returns

  • AsyncSpawnResult - The spawn operation result.