mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
runtime: add link to LocalSet on new_current_thread (#3508)
This commit is contained in:
parent
572a897d43
commit
6fd9084d47
@ -86,6 +86,11 @@ impl Builder {
|
||||
/// Returns a new builder with the current thread scheduler selected.
|
||||
///
|
||||
/// Configuration methods can be chained on the return value.
|
||||
///
|
||||
/// To spawn non-`Send` tasks on the resulting runtime, combine it with a
|
||||
/// [`LocalSet`].
|
||||
///
|
||||
/// [`LocalSet`]: crate::task::LocalSet
|
||||
pub fn new_current_thread() -> Builder {
|
||||
Builder::new(Kind::CurrentThread)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user