Skip to main content

test_async

Attribute Macro test_async 

Source
#[test_async]
Expand description

Run a test function asynchronously.

This macro is powered by the futures crate and is not bound to a particular executor or context.

ยงExample

#[commonware_macros::test_async]
async fn test_async_fn() {
   assert_eq!(2 + 2, 4);
}