File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,10 @@ impl Builder {
389
389
/// panics, [`join`] will return an [`Err`] containing the argument given to
390
390
/// [`panic`].
391
391
///
392
+ /// This will create a thread using default parameters of [`Builder`], if you
393
+ /// want to specify the stack size or the name of the thread, use this API
394
+ /// instead.
395
+ ///
392
396
/// # Panics
393
397
///
394
398
/// Panics if the OS fails to create a thread; use [`Builder::spawn`]
@@ -454,6 +458,7 @@ impl Builder {
454
458
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
455
459
/// [`panic`]: ../../std/macro.panic.html
456
460
/// [`Builder::spawn`]: ../../std/thread/struct.Builder.html#method.spawn
461
+ /// [`Builder`]: ../../std/thread/struct.Builder.html
457
462
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
458
463
pub fn spawn < F , T > ( f : F ) -> JoinHandle < T > where
459
464
F : FnOnce ( ) -> T , F : Send + ' static , T : Send + ' static
You can’t perform that action at this time.
0 commit comments