From 16f20c34ed9bc11eb1e7cdec441ab844b198d2cd Mon Sep 17 00:00:00 2001 From: Mattia Pitossi Date: Fri, 2 Jan 2026 16:45:51 +0100 Subject: [PATCH] rt: mention `LocalRuntime` in `new_current_thread` docs (#7820) --- tokio/src/runtime/builder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tokio/src/runtime/builder.rs b/tokio/src/runtime/builder.rs index 3a40717e5..e3f6f465c 100644 --- a/tokio/src/runtime/builder.rs +++ b/tokio/src/runtime/builder.rs @@ -238,9 +238,11 @@ impl Builder { /// Configuration methods can be chained on the return value. /// /// To spawn non-`Send` tasks on the resulting runtime, combine it with a - /// [`LocalSet`]. + /// [`LocalSet`], or call [`build_local`] to create a [`LocalRuntime`] (unstable). /// /// [`LocalSet`]: crate::task::LocalSet + /// [`LocalRuntime`]: crate::runtime::LocalRuntime + /// [`build_local`]: crate::runtime::Builder::build_local pub fn new_current_thread() -> Builder { #[cfg(loom)] const EVENT_INTERVAL: u32 = 4;