Skip to content

Commit 16f20c3

Browse files
rt: mention LocalRuntime in new_current_thread docs (#7820)
1 parent 4667478 commit 16f20c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tokio/src/runtime/builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ impl Builder {
238238
/// Configuration methods can be chained on the return value.
239239
///
240240
/// To spawn non-`Send` tasks on the resulting runtime, combine it with a
241-
/// [`LocalSet`].
241+
/// [`LocalSet`], or call [`build_local`] to create a [`LocalRuntime`] (unstable).
242242
///
243243
/// [`LocalSet`]: crate::task::LocalSet
244+
/// [`LocalRuntime`]: crate::runtime::LocalRuntime
245+
/// [`build_local`]: crate::runtime::Builder::build_local
244246
pub fn new_current_thread() -> Builder {
245247
#[cfg(loom)]
246248
const EVENT_INTERVAL: u32 = 4;

0 commit comments

Comments
 (0)