Sha256: 7f19f066e32815d540175b61791d8dc97718a368ec51ff24605c9e42d7e2b807
Contents?: true
Size: 357 Bytes
Versions: 15
Compression:
Stored size: 357 Bytes
Contents
#![cfg(feature = "full")] use tokio::time::{Duration, Instant}; #[tokio::test(start_paused = true)] async fn test_start_paused() { let now = Instant::now(); // Pause a few times w/ std sleep and ensure `now` stays the same for _ in 0..5 { std::thread::sleep(Duration::from_millis(1)); assert_eq!(now, Instant::now()); } }
Version data entries
15 entries across 15 versions & 1 rubygems