We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8925479 commit 6b23e11Copy full SHA for 6b23e11
src/macos.rs
@@ -20,7 +20,7 @@ impl ECMAScriptAtomicWaitImpl for Racy<'_, u32> {
20
size_of::<Self>(),
21
libc::OS_SYNC_WAIT_ON_ADDRESS_NONE,
22
libc::CLOCK_MONOTONIC,
23
- time.as_nanos().min(u64::MAX as u128) as u64,
+ (time.as_nanos().min(u64::MAX as u128) as u64).max(1),
24
)
25
} else {
26
libc::os_sync_wait_on_address(
@@ -96,7 +96,7 @@ impl ECMAScriptAtomicWaitImpl for Racy<'_, u64> {
96
97
98
99
100
101
102
0 commit comments