We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sleep_ms
sleep
1 parent 7b659cf commit 20fd6ccCopy full SHA for 20fd6cc
src/libstd/thread/mod.rs
@@ -491,9 +491,12 @@ pub fn panicking() -> bool {
491
/// Puts the current thread to sleep for the specified amount of time.
492
///
493
/// The thread may sleep longer than the duration specified due to scheduling
494
-/// specifics or platform-dependent functionality. Note that on unix platforms
495
-/// this function will not return early due to a signal being received or a
496
-/// spurious wakeup.
+/// specifics or platform-dependent functionality.
+///
+/// # Platform behavior
497
498
+/// On Unix platforms this function will not return early due to a
499
+/// signal being received or a spurious wakeup.
500
501
/// # Examples
502
0 commit comments