File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,18 @@ cfg_test_util! {
185
185
///
186
186
/// # Panics
187
187
///
188
- /// Panics if time is not frozen or if called from outside of the Tokio
189
- /// runtime.
188
+ /// Panics if any of the following conditions are met:
189
+ ///
190
+ /// - The clock is not frozen, which means that you must
191
+ /// call [`pause`] before calling this method.
192
+ /// - If called outside of the Tokio runtime.
193
+ /// - If the input `duration` is too large (such as [`Duration::MAX`])
194
+ /// to be safely added to the current time without causing an overflow.
195
+ ///
196
+ /// # Caveats
197
+ ///
198
+ /// Using a very large `duration` is not recommended,
199
+ /// as it may cause panicking due to overflow.
190
200
///
191
201
/// # Auto-advance
192
202
///
You can’t perform that action at this time.
0 commit comments