async-rt 0.2.0

A small library designed to utilize async executors through an common API while extending features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg(all(
    feature = "macros",
    feature = "tokio",
    feature = "smol",
    not(target_arch = "wasm32")
))]

#[async_rt::test(executor = "smol")]
async fn explicit_executor_updates_task_executor() {
    assert_eq!(async_rt::task::runtime_type(), Some("smol"));
    assert_eq!(async_rt::task::spawn(async { 42 }).await.unwrap(), 42);
}