[][src]Attribute Macro tokio_macros::test_threaded

#[test_threaded]

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

Options:

Usage

Select runtime

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

Using default

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