diff --git a/tokio/src/runtime/current_thread/runtime.rs b/tokio/src/runtime/current_thread/runtime.rs index e6562809b..ac490d95d 100644 --- a/tokio/src/runtime/current_thread/runtime.rs +++ b/tokio/src/runtime/current_thread/runtime.rs @@ -55,6 +55,11 @@ impl Handle { pub fn status(&self) -> Result<(), tokio_executor::SpawnError> { self.0.status() } + + /// Retrieve inner `CurrentThread` executor handle + pub fn into_inner(self) -> ExecutorHandle { + self.0 + } } impl future::Executor for Handle