[][src]Attribute Macro tokio_async_std::test

#[test]
This is supported on attributes only.

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

Options:

  • max_threads=n - Sets max threads to n.

Usage

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