Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize basic timeout functionality #23949

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

aturon
Copy link
Member

@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