[−][src]Function ckb_async_runtime::new_runtime
pub fn new_runtime<F, R>(
name_prefix: &str,
runtime_builder_opt: Option<Builder>,
block: F
) -> (Handle, JoinHandle<()>) where
F: FnOnce(Handle) -> R + Send + 'static,
R: Future,
Creates a new tokio runtime.