thread_runner 0.2.0

A rust library for executing tasks concurrently
Documentation
1
2
3
4
5
6
7
8
9
10
11
use thread_runner::{AsyncFlavor, AsyncRuntime};

fn main() {
    let runtime = AsyncRuntime::new(AsyncFlavor::AllThreads);
    let res = runtime.poll(charge());
    println!("{}", res)
}

pub async fn charge() -> i32 {
    2
}