From a2e56c10ba50aeb465aa792b36bf0b19b224335b Mon Sep 17 00:00:00 2001 From: Frances Wingerter Date: Mon, 12 Aug 2024 14:52:30 -0400 Subject: [PATCH] threads: do not refer to "daemon" threads this is Java-specific terminology and it's clearer to simply state the implication for program/thread lifetime --- src/concurrency/threads/plain.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/concurrency/threads/plain.md b/src/concurrency/threads/plain.md index 286e0bc3ca37..0e9150a7a8e5 100644 --- a/src/concurrency/threads/plain.md +++ b/src/concurrency/threads/plain.md @@ -25,7 +25,8 @@ fn main() { } ``` -- Threads are all daemon threads, the main thread does not wait for them. +- Spawning new threads does not automatically delay program termination at the + end of `main`. - Thread panics are independent of each other. - Panics can carry a payload, which can be unpacked with `downcast_ref`.