File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 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 {
737737/// The thread may sleep longer than the duration specified due to scheduling
738738/// specifics or platform-dependent functionality. It will never sleep less.
739739///
740+ /// This function is blocking, and should not be used in `async` functions.
741+ ///
740742/// # Platform-specific behavior
741743///
742744/// On Unix platforms, the underlying syscall may be interrupted by a
@@ -763,6 +765,8 @@ pub fn sleep_ms(ms: u32) {
763765/// The thread may sleep longer than the duration specified due to scheduling
764766/// specifics or platform-dependent functionality. It will never sleep less.
765767///
768+ /// This function is blocking, and should not be used in `async` functions.
769+ ///
766770/// # Platform-specific behavior
767771///
768772/// On Unix platforms, the underlying syscall may be interrupted by a
You can’t perform that action at this time.
0 commit comments