Function run

Source
pub async fn run<Factory, Runtime>(factory: Factory)
where Factory: Fn(EventEmitter) -> Runtime, Runtime: RuntimeService + 'static,