mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
timer: Replace Handle::deadline with Handle::timeout (#1074)
Deadline was deprecated a while ago and replaced with Timeout, but the methods on Handle got missed. Fixes #1071
This commit is contained in:
committed by
Carl Lerche
parent
ea282efb2e
commit
219f24cbf1
@@ -118,7 +118,7 @@ fn hammer_cancel() {
|
||||
let deadline = cmp::min(deadline1, deadline2);
|
||||
|
||||
let delay = handle.delay(deadline1);
|
||||
let join = handle.deadline(delay, deadline2);
|
||||
let join = handle.timeout(delay, deadline2);
|
||||
|
||||
exec.push({
|
||||
join.and_then(move |_| {
|
||||
|
||||
Reference in New Issue
Block a user