macro_rules! maybe_sleep_async {
($tag:literal, $millis:literal) => { ... };
}
Expand description
If the specified failpoint is enabled, this macro will pause the asynchronous execution for a given number of milliseconds.
ยงExample
chaos_rs::maybe_sleep_async!("slow_io", 500);