From a2efa2aa291c938200da59b89b14214c8d2c70ba Mon Sep 17 00:00:00 2001 From: Ben Striegel Date: Wed, 4 Nov 2015 17:11:01 -0800 Subject: Deprecate `_ms` functions that predate the `Duration` API --- src/libstd/thread/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd/thread') 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: F) -> Result /// 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)) } -- cgit 1.4.1-3-g733a5