diff --git a/tokio/src/runtime/local_runtime/runtime.rs b/tokio/src/runtime/local_runtime/runtime.rs index eb5b39cddde..c174749631b 100644 --- a/tokio/src/runtime/local_runtime/runtime.rs +++ b/tokio/src/runtime/local_runtime/runtime.rs @@ -252,9 +252,15 @@ impl LocalRuntime { /// available on creation such as [`Sleep`] or [`TcpStream`]. It will /// also allow you to call methods such as [`tokio::spawn`]. /// + /// If this is a handle to a [`LocalRuntime`], and this function is being invoked from the same + /// thread that the runtime was created on, you will also be able to call + /// [`tokio::task::spawn_local`]. + /// /// [`Sleep`]: struct@crate::time::Sleep /// [`TcpStream`]: struct@crate::net::TcpStream /// [`tokio::spawn`]: fn@crate::spawn + /// [`LocalRuntime`]: struct@crate::runtime::LocalRuntime + /// [`tokio::task::spawn_local`]: fn@crate::task::spawn_local /// /// # Example ///