File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,11 @@ impl Builder {
244
244
/// Generates the base configuration for spawning a thread, from which
245
245
/// configuration methods can be chained.
246
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
+ ///
247
252
/// # Examples
248
253
///
249
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 {
264
271
Builder {
You can’t perform that action at this time.
0 commit comments