docs: Mention that drop() is not called for statically spawned tasks

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-06-08 18:34:26 -07:00 committed by John Nunley
parent 0ab35906e4
commit 2e3dfc7975
1 changed files with 3 additions and 0 deletions

View File

@ -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
///
/// ```