ut

Attribute Macro wrap

Source
#[wrap]
Expand description

Wraps an async function in order to make it synchronous

ยงExamples

#[ut::wrap]
async fn foo(input: &str) -> String {
 format!("I am {} now", input)
}

let out = foo("sync");
assert_eq!(out, "I am sync now".to_owned())