We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
thread::spawn
1 parent ced823e commit ddb9e50Copy full SHA for ddb9e50
src/libstd/thread/mod.rs
@@ -244,6 +244,11 @@ impl Builder {
244
/// Generates the base configuration for spawning a thread, from which
245
/// configuration methods can be chained.
246
///
247
+ /// If the [`stack_size`][stack_size] field is not specified, the stack size
248
+ /// will be the `RUST_MIN_STACK` environment variable, if it is
249
+ /// not specified either, a sensible default size will be set (2MB as
250
+ /// of the writting of this doc).
251
+ ///
252
/// # Examples
253
254
/// ```
@@ -259,6 +264,8 @@ impl Builder {
259
264
260
265
/// handler.join().unwrap();
261
266
267
268
+ /// [stack_size]: ../../std/thread/struct.Builder.html#method.stack_size
262
269
#[stable(feature = "rust1", since = "1.0.0")]
263
270
pub fn new() -> Builder {
271
Builder {
0 commit comments