mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Merge pull request #247 from twmb/timeout_token_doc
TokenTimeout: add doc around new panic
This commit is contained in:
commit
645ae7051d
@ -48,7 +48,7 @@ impl TimeoutToken {
|
||||
/// # Panics
|
||||
///
|
||||
/// This method will panic if the timeout specified was not created by this
|
||||
/// loop handle's `add_timeout` method.
|
||||
/// loop handle's `add_timeout` method or if called multiple times.
|
||||
pub fn cancel_timeout(&self, handle: &Remote) {
|
||||
debug!("cancel timeout {}", self.token);
|
||||
handle.send(Message::CancelTimeout(self.token))
|
||||
|
Loading…
x
Reference in New Issue
Block a user