Attribute Macro tokio_macros::test_rt

source ·
#[test_rt]
Expand description

Marks async function to be executed by runtime, suitable to test environment

§Usage

#[tokio::test]
async fn my_test() {
    assert!(true);
}