File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,8 @@ pub fn panicking() -> bool {
737
737
/// The thread may sleep longer than the duration specified due to scheduling
738
738
/// specifics or platform-dependent functionality. It will never sleep less.
739
739
///
740
+ /// This function is blocking, and should not be used in `async` functions.
741
+ ///
740
742
/// # Platform-specific behavior
741
743
///
742
744
/// On Unix platforms, the underlying syscall may be interrupted by a
@@ -763,6 +765,8 @@ pub fn sleep_ms(ms: u32) {
763
765
/// The thread may sleep longer than the duration specified due to scheduling
764
766
/// specifics or platform-dependent functionality. It will never sleep less.
765
767
///
768
+ /// This function is blocking, and should not be used in `async` functions.
769
+ ///
766
770
/// # Platform-specific behavior
767
771
///
768
772
/// On Unix platforms, the underlying syscall may be interrupted by a
You can’t perform that action at this time.
0 commit comments