diff options
| author | bors <bors@rust-lang.org> | 2015-11-06 09:42:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-11-06 09:42:17 +0000 |
| commit | 6878fce9c707dd7449df1981303dfc2c1fedabab (patch) | |
| tree | c40ef568e55faaf938901bff4928e21724bf0c4e /src/libstd/thread/mod.rs | |
| parent | 02d9f294558da746e8c5707f13cd9153d3ac5f40 (diff) | |
| parent | a2efa2aa291c938200da59b89b14214c8d2c70ba (diff) | |
| download | rust-6878fce9c707dd7449df1981303dfc2c1fedabab.tar.gz rust-6878fce9c707dd7449df1981303dfc2c1fedabab.zip | |
Auto merge of #29604 - bstrie:de_ms, r=alexcrichton
Diffstat (limited to 'src/libstd/thread/mod.rs')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 9b8f63997b6..75e3a52feea 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -390,6 +390,7 @@ pub fn catch_panic<F, R>(f: F) -> Result<R> /// this function will not return early due to a signal being received or a /// spurious wakeup. #[stable(feature = "rust1", since = "1.0.0")] +#[deprecated(since = "1.6.0", reason = "replaced by `std::thread::sleep`")] pub fn sleep_ms(ms: u32) { sleep(Duration::from_millis(ms as u64)) } @@ -456,6 +457,7 @@ pub fn park() { /// /// See the module doc for more detail. #[stable(feature = "rust1", since = "1.0.0")] +#[deprecated(since = "1.6.0", reason = "replaced by `std::thread::park_timeout`")] pub fn park_timeout_ms(ms: u32) { park_timeout(Duration::from_millis(ms as u64)) } |
