Function steward::run_mut

source ·
pub async fn run_mut<Fun, Fut, Ok, Err>(
    msg: impl Display,
    f: Fun
) -> Result<Ok, Err>where
    Fun: FnMut() -> Fut,
    Fut: Future<Output = Result<Ok, Err>>,
Expand description

A function that prints a headline of a task and runs the task (FnMut).

steward::run("Stopping server", || async { process.stop().await }).await