diff options
| author | Vasya Novikov <n1dr+cm3513git@ya.ru> | 2018-09-28 22:40:20 +0300 |
|---|---|---|
| committer | Vasya Novikov <n1dr+cm3513git@ya.ru> | 2018-09-28 22:40:20 +0300 |
| commit | 049ccbb174552bac2f19df5361c3470828bf04c4 (patch) | |
| tree | 2c3bf22ad1fcaabd8a15a70e6458924aebaed924 /src/libstd/thread | |
| parent | 1a605a6bda22750a1be9e21b988345f343260bb6 (diff) | |
| download | rust-049ccbb174552bac2f19df5361c3470828bf04c4.tar.gz rust-049ccbb174552bac2f19df5361c3470828bf04c4.zip | |
update wording for std::thread::sleep
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 /// |
