Update tokio-core with new task system

This commit is contained in:
Alex Crichton
2017-05-30 08:42:32 -07:00
parent 0be8eab260
commit 16d15520ad
4 changed files with 52 additions and 25 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ impl TimeoutToken {
/// This method will panic if the timeout specified was not created by this
/// loop handle's `add_timeout` method.
pub fn update_timeout(&self, handle: &Remote) {
handle.send(Message::UpdateTimeout(self.token, task::park()))
handle.send(Message::UpdateTimeout(self.token, task::current()))
}
/// Resets previously added (or fired) timeout to an new timeout