async_run_function

Function async_run_function 

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

Executes a recoverable function within a panic-safe context.

§Arguments

  • F - Function implementing AsyncRecoverableFunction.

§Returns

  • AsyncSpawnResult - The spawn operation result.