summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/notify.rs
diff options
context:
space:
mode:
authorThomas Whiteway <thomas.whiteway@gmail.com>2020-02-26 18:55:08 +0000
committerGitHub <noreply@github.com>2020-02-26 10:55:08 -0800
commit7207bf355e2b6418bb0d757859a5cdcdedf32530 (patch)
treec1e060455974cc2b46c2dfca6fcde5ce65e75177 /tokio/src/sync/notify.rs
parenta4c4ac254b36c5b78038d416e3b78912df293f8f (diff)
time: avoid needing to `poll` DelayQueue after insertion (#2217)
If an entry is inserted in the queue before the next deadline, the DelayQueue needs to update the Delay tracking the next time to poll. If there is an existing Delay, reset that rather than replacing it as if it's already been polled the task will be waiting for a notification before it will poll again, and dropping the Delay means that that notification will never be performed.
Diffstat (limited to 'tokio/src/sync/notify.rs')
0 files changed, 0 insertions, 0 deletions