[][src]Function af_lib::run

pub fn run<T, E>(
    future: impl Send + Future<Output = Result<T, E>> + 'static
) -> ! where
    E: Display + Send + 'static,
    T: Send + 'static, 

Starts a task from the given future, waits for it to stop, then exits the process.

If the task fails, this function logs the error and exits the process with a non-zero exit code.