From 049ccbb174552bac2f19df5361c3470828bf04c4 Mon Sep 17 00:00:00 2001 From: Vasya Novikov Date: Fri, 28 Sep 2018 22:40:20 +0300 Subject: update wording for std::thread::sleep --- src/libstd/thread/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd/thread') diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index ec9f20def7d..96ce38d12e1 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -650,15 +650,15 @@ pub fn panicking() -> bool { panicking::panicking() } -/// Puts the current thread to sleep for the specified amount of time. +/// Puts the current thread to sleep for at least the specified amount of time. /// /// The thread may sleep longer than the duration specified due to scheduling -/// specifics or platform-dependent functionality. +/// specifics or platform-dependent functionality. It will never sleep less. /// /// # Platform-specific behavior /// -/// On Unix platforms this function might return early due to a -/// signal being received or a spurious wakeup. +/// On Unix platforms this function may invoke multiple syscalls +/// in case of a signal being received or a spurious wakeup. /// /// # Examples /// -- cgit 1.4.1-3-g733a5