Skip to content

Conversation

aturon
Copy link
Contributor

@aturon aturon commented Apr 1, 2015

This commit renames and stabilizes:

  • Condvar::wait_timeout_ms (renamed from wait_timeout)
  • thread::park_timeout_ms (renamed from park_timeout)
  • thread::sleep_ms (renamed from sleep)

In each case, the timeout is taken as a u32 number of milliseconds,
rather than a Duration.

These functions are likely to be deprecated once a stable form of
Duration is available, but there is little cost to having these named
variants around, and it's crucial functionality for 1.0.

[breaking-change]

r? @alexcrichton

cc @sfackler @carllerche

This commit renames and stabilizes:

* `Condvar::wait_timeout_ms` (renamed from `wait_timeout`)
* `thread::park_timeout_ms` (renamed from `park_timeout`)
* `thread::sleep_ms` (renamed from `sleep`)

In each case, the timeout is taken as a `u32` number of milliseconds,
rather than a `Duration`.

These functions are likely to be deprecated once a stable form of
`Duration` is available, but there is little cost to having these named
variants around, and it's crucial functionality for 1.0.

[breaking-change]
@alexcrichton
Copy link
Member

@bors: r+ 371277f

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 1, 2015
This commit renames and stabilizes:

* `Condvar::wait_timeout_ms` (renamed from `wait_timeout`)
* `thread::park_timeout_ms` (renamed from `park_timeout`)
* `thread::sleep_ms` (renamed from `sleep`)

In each case, the timeout is taken as a `u32` number of milliseconds,
rather than a `Duration`.

These functions are likely to be deprecated once a stable form of
`Duration` is available, but there is little cost to having these named
variants around, and it's crucial functionality for 1.0.

[breaking-change]

r? @alexcrichton

cc @sfackler @carllerche
@alexcrichton alexcrichton merged commit 371277f into rust-lang:master Apr 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants