#[test]Expand description
Converts async function to test against a sample runtime.
§Options
parallelism: non negative integer to specify parallelism for executor. Defaults to environment variableASYNCS_TEST_PARALLELISMand2in fallback.0means available cores.send: whether the async function need to beSend. Defaults totrue.
§Examples
ⓘ
use std::future::pending;
#[asyncs::test]
async fn pending_default() {
let v = select! {
default => 5,
i = pending() => i,
};
assert_eq!(v, 5);
}