Skip to content

Commit

Permalink
Change timeout from f64 ms -> i64 ns (WebAssembly#43)
Browse files Browse the repository at this point in the history
See issue WebAssembly#36.
  • Loading branch information
binji committed Jul 27, 2017
1 parent 59adc4a commit f70a19f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions proposals/threads/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,13 @@ woken by [`Atomics.wake`][].
### Wait

The wait operator take three operands: an address operand, an expected value,
and a relative timeout in milliseconds as an `f64`. The return value is `0`,
and a relative timeout in nanoseconds as an `i64`. The return value is `0`,
`1`, or `2`, returned as an `i32`.

| `timeout` value | Behavior |
| ---- | ---- |
| `timeout` <= 0 | Expires immediately |
| 0 < `timeout` < Positive infinity | Expires after `timeout` milliseconds |
| Positive infinity | Never expires |
| NaN | Never expires |
| `timeout` < 0 | Never expires |
| 0 <= `timeout` <= maximum signed i64 value | Expires after `timeout` nanoseconds |

| Return value | Description |
| ---- | ---- |
Expand Down

0 comments on commit f70a19f

Please sign in to comment.