|
|
@ -58,7 +58,7 @@
|
|
|
|
//! ## Configuring tasks
|
|
|
|
//! ## Configuring tasks
|
|
|
|
//!
|
|
|
|
//!
|
|
|
|
//! A new task can be configured before it is spawned via the [`Builder`] type,
|
|
|
|
//! A new task can be configured before it is spawned via the [`Builder`] type,
|
|
|
|
//! which currently allows you to set the name and stack size for the child task:
|
|
|
|
//! which currently allows you to set the name for the child task:
|
|
|
|
//!
|
|
|
|
//!
|
|
|
|
//! ```
|
|
|
|
//! ```
|
|
|
|
//! # #![allow(unused_must_use)]
|
|
|
|
//! # #![allow(unused_must_use)]
|
|
|
@ -110,7 +110,6 @@
|
|
|
|
//! [`join`]: struct.JoinHandle.html#method.join
|
|
|
|
//! [`join`]: struct.JoinHandle.html#method.join
|
|
|
|
//! [`panic!`]: https://doc.rust-lang.org/std/macro.panic.html
|
|
|
|
//! [`panic!`]: https://doc.rust-lang.org/std/macro.panic.html
|
|
|
|
//! [`Builder`]: struct.Builder.html
|
|
|
|
//! [`Builder`]: struct.Builder.html
|
|
|
|
//! [`Builder::stack_size`]: struct.Builder.html#method.stack_size
|
|
|
|
|
|
|
|
//! [`Builder::name`]: struct.Builder.html#method.name
|
|
|
|
//! [`Builder::name`]: struct.Builder.html#method.name
|
|
|
|
//! [`task::current`]: fn.current.html
|
|
|
|
//! [`task::current`]: fn.current.html
|
|
|
|
//! [`Task`]: struct.Task.html
|
|
|
|
//! [`Task`]: struct.Task.html
|
|
|
|