mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Add a method to get a handle from a pin
It's store there anyway!
This commit is contained in:
parent
b508964db6
commit
3158a2c73b
@ -633,6 +633,11 @@ impl LoopPin {
|
|||||||
handle: self.handle.clone(),
|
handle: self.handle.clone(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns a reference to the underlying handle to the event loop.
|
||||||
|
pub fn handle(&self) -> &LoopHandle {
|
||||||
|
&self.handle
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A future which will resolve a unique `tok` token for an I/O object.
|
/// A future which will resolve a unique `tok` token for an I/O object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user