1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
//! Example: Sync points for deterministic testing fn main() { println!("🧰 testkit-async - Sync points example"); println!("🚧 Coming soon..."); // Future API: // use testkit_async::prelude::*; // // #[testkit_async::test] // async fn test_race_condition() { // let executor = TestExecutor::new(); // // executor.spawn(async { // sync_point("before_write").await; // write_data(); // }); // // executor.spawn(async { // sync_point("before_write").await; // write_data(); // }); // // // Release both simultaneously // executor.release("before_write"); // // // Now test race condition handling // } }