File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,16 @@ where
246
246
}
247
247
}
248
248
249
- /// Supply tokio::time::advance() API ( for compilation only - this method
250
- /// is meaningless inside the simulator).
249
+ /// Supply tokio::time::advance() and tokio::time::pause() APIs ( for compilation only -
250
+ /// these methods are meaningless inside the simulator).
251
251
pub async fn advance ( _duration : Duration ) {
252
252
unimplemented ! ( "cannot advance clock in simulation - use sleep() instead" ) ;
253
253
}
254
254
255
+ pub fn pause ( ) {
256
+ unimplemented ! ( "cannot pause clock in simulation" ) ;
257
+ }
258
+
255
259
/// Require a `Future` to complete before the specified duration has elapsed.
256
260
pub fn timeout < T : Future > ( duration : Duration , future : T ) -> Timeout < T > {
257
261
let handle = TimeHandle :: current ( ) ;
You can’t perform that action at this time.
0 commit comments