runtime: add link to LocalSet on new_current_thread (#3508)

This commit is contained in:
Alice Ryhl
2021-02-06 19:08:59 +01:00
committed by GitHub
parent 572a897d43
commit 6fd9084d47
+5
View File
@@ -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)
}