We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LocalRuntime
new_current_thread
1 parent 4667478 commit 16f20c3Copy full SHA for 16f20c3
tokio/src/runtime/builder.rs
@@ -238,9 +238,11 @@ impl Builder {
238
/// Configuration methods can be chained on the return value.
239
///
240
/// To spawn non-`Send` tasks on the resulting runtime, combine it with a
241
- /// [`LocalSet`].
+ /// [`LocalSet`], or call [`build_local`] to create a [`LocalRuntime`] (unstable).
242
243
/// [`LocalSet`]: crate::task::LocalSet
244
+ /// [`LocalRuntime`]: crate::runtime::LocalRuntime
245
+ /// [`build_local`]: crate::runtime::Builder::build_local
246
pub fn new_current_thread() -> Builder {
247
#[cfg(loom)]
248
const EVENT_INTERVAL: u32 = 4;
0 commit comments