hala-io 0.1.6

hala asynchronous io programming primitive types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub use std::future::Future;

use hala_future::executor::block_on;

/// Test runner with multithread spawner and global poll event loop
pub fn io_test<T, Fut>(_: &'static str, test: T)
where
    T: FnOnce() -> Fut + 'static,
    Fut: Future<Output = ()> + Send + 'static,
{
    let fut = test();

    block_on(fut);
}