File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -657,8 +657,10 @@ pub fn panicking() -> bool {
657
657
///
658
658
/// # Platform-specific behavior
659
659
///
660
- /// On Unix platforms this function may invoke multiple syscalls
661
- /// in case of a signal being received or a spurious wakeup.
660
+ /// On Unix platforms, the underlying syscall may be interrupted by a
661
+ /// spurious wakeup or signal handler. To ensure the sleep occurs for at least
662
+ /// the specified duration, this function may invoke that system call multiple
663
+ /// times.
662
664
///
663
665
/// # Examples
664
666
///
@@ -681,8 +683,10 @@ pub fn sleep_ms(ms: u32) {
681
683
///
682
684
/// # Platform-specific behavior
683
685
///
684
- /// On Unix platforms this function may invoke multiple syscalls
685
- /// in case of a signal being received or a spurious wakeup.
686
+ /// On Unix platforms, the underlying syscall may be interrupted by a
687
+ /// spurious wakeup or signal handler. To ensure the sleep occurs for at least
688
+ /// the specified duration, this function may invoke that system call multiple
689
+ /// times.
686
690
/// Platforms which do not support nanosecond precision for sleeping will
687
691
/// have `dur` rounded up to the nearest granularity of time they can sleep for.
688
692
///
You can’t perform that action at this time.
0 commit comments