Sha256: 76549719f16e9cbdd9a84b9d97929ed7c8ca95b8d4d715608eb99f950cdda7a3
Contents?: true
Size: 362 Bytes
Versions: 19
Compression:
Stored size: 362 Bytes
Contents
#![cfg(all(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
19 entries across 19 versions & 1 rubygems