mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
rt: mention LocalRuntime in new_current_thread docs (#7820)
This commit is contained in:
@@ -238,9 +238,11 @@ impl Builder {
|
|||||||
/// Configuration methods can be chained on the return value.
|
/// Configuration methods can be chained on the return value.
|
||||||
///
|
///
|
||||||
/// To spawn non-`Send` tasks on the resulting runtime, combine it with a
|
/// 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
|
/// [`LocalSet`]: crate::task::LocalSet
|
||||||
|
/// [`LocalRuntime`]: crate::runtime::LocalRuntime
|
||||||
|
/// [`build_local`]: crate::runtime::Builder::build_local
|
||||||
pub fn new_current_thread() -> Builder {
|
pub fn new_current_thread() -> Builder {
|
||||||
#[cfg(loom)]
|
#[cfg(loom)]
|
||||||
const EVENT_INTERVAL: u32 = 4;
|
const EVENT_INTERVAL: u32 = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user