File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -350,15 +350,13 @@ woken by [`Atomics.wake`][].
350
350
### Wait
351
351
352
352
The wait operator take three operands: an address operand, an expected value,
353
- and a relative timeout in milliseconds as an ` f64 ` . The return value is ` 0 ` ,
353
+ and a relative timeout in nanoseconds as an ` i64 ` . The return value is ` 0 ` ,
354
354
` 1 ` , or ` 2 ` , returned as an ` i32 ` .
355
355
356
356
| ` timeout ` value | Behavior |
357
357
| ---- | ---- |
358
- | ` timeout ` <= 0 | Expires immediately |
359
- | 0 < ` timeout ` < Positive infinity | Expires after ` timeout ` milliseconds |
360
- | Positive infinity | Never expires |
361
- | NaN | Never expires |
358
+ | ` timeout ` < 0 | Never expires |
359
+ | 0 <= ` timeout ` <= maximum signed i64 value | Expires after ` timeout ` nanoseconds |
362
360
363
361
| Return value | Description |
364
362
| ---- | ---- |
You can’t perform that action at this time.
0 commit comments