Skip to main content

run

Function run 

Source
pub fn run<F, Fut>(f: F)
where F: FnOnce() -> Fut, Fut: Future<Output = Result<()>>,
Expand description

Shared entry point: init tracing from RUST_LOG, build a tokio runtime, run the given async closure, and exit on error.