Macro async_test

Source
macro_rules! async_test {
    ($name:ident $body:block) => { ... };
}
Expand description

Expands to tokio::test on native targets and to a wasm_bindgen_test module on wasm32 (so the name doesn’t clash with the outer function space).

cross_locks::async_test!(my_test {
    /* … runs on both platforms … */
});