Skip to main content

with_runtime

Function with_runtime 

Source
pub(crate) fn with_runtime<F, Fut>(
    config: RuntimeConfig,
    handler: F,
) -> Result<()>
where F: FnOnce() -> Fut, Fut: Future<Output = Result<()>>,
Expand description

Execute a command with the appropriate runtime configuration