diff --git a/src/event_loop.rs b/src/event_loop.rs index aab1062a3..06ee3a01a 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -633,6 +633,11 @@ impl LoopPin { 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.