summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/watch.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-01-06 08:47:34 -0800
committerGitHub <noreply@github.com>2020-01-06 08:47:34 -0800
commitf0006006ed9938115011c42f26cff16842eb534f (patch)
tree6bd9d4acd2233dfe8c9fb604d88d535f0325a661 /tokio/src/sync/watch.rs
parent84ff73e687932d77a1163167b938631b1104d54f (diff)
time: advance frozen time in `park_timeout` (#2059)
This patch improves the behavior of frozen time (a testing utility made available with the `test-util` feature flag). Instead of of requiring `time::advance` to be called in order to advance the value returned by `Instant::now`, calls to `time::Driver::park_timeout` will use the provided duration to advance the time. This is the desired behavior as the timeout is used to indicate when the next scheduled delay needs to be fired.
Diffstat (limited to 'tokio/src/sync/watch.rs')
0 files changed, 0 insertions, 0 deletions