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.

  • func: A function implementing the AsyncRecoverableFunction trait.
  • Returns: A AsyncSpawnResult indicating the success or failure of the function execution.