From 2e3dfc797501919c761c552bc051acd38c2e482c Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 8 Jun 2024 18:34:26 -0700 Subject: [PATCH] docs: Mention that drop() is not called for statically spawned tasks Signed-off-by: John Nunley --- src/spawn.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spawn.rs b/src/spawn.rs index b31494d..cf6b808 100644 --- a/src/spawn.rs +++ b/src/spawn.rs @@ -16,6 +16,9 @@ use futures_lite::future; /// By default, the global executor is run by a single background thread, but you can also /// configure the number of threads by setting the `SMOL_THREADS` environment variable. /// +/// Since the executor is kept around forever, `drop` is not called for tasks when the program +/// exits. +/// /// # Examples /// /// ```