mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
Add a method to get a handle from a pin
It's store there anyway!
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user