diff options
author | Carl Lerche <me@carllerche.com> | 2020-01-06 08:47:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 08:47:34 -0800 |
commit | f0006006ed9938115011c42f26cff16842eb534f (patch) | |
tree | 6bd9d4acd2233dfe8c9fb604d88d535f0325a661 /tokio/src/sync/watch.rs | |
parent | 84ff73e687932d77a1163167b938631b1104d54f (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