Skip to main content

emit_concurrency_tokio

Macro emit_concurrency_tokio 

macro_rules! emit_concurrency_tokio {
    ($($name:ident),* $(,)?) => { ... };
}
Available on non-WebAssembly only.
Expand description

Emits one #[tokio::test(flavor = "multi_thread")] per concurrency rule.

The multi-thread flavour is not what makes the contenders parallel — that is std::thread::scope, inside the rules — but an adapter whose own futures need a reactor under them will want one, and a current_thread runtime whose only thread is blocked inside a scope cannot drive anything else.

The caller’s crate needs tokio with macros, rt and rt-multi-thread.

The default: an invocation of event_store_concurrency_conformance! that names no emitter uses it, and naming it is emit = happenstance_testkit::emit_concurrency_tokio. The name is promised (CF-41): renaming or removing it is a major release of this crate.