1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::tokio::TokioProcess; use std::future::Future; fn run<F>(f: F) where F: Future<Output = ()>, { tokio::runtime::Builder::new_current_thread() .enable_all() .build() .unwrap() .block_on(f); } test_suites!(tokio);