Skip to content

Commit

Permalink
docs: Mention that drop() is not called for statically spawned tasks
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Jun 9, 2024
1 parent 0ab3590 commit 2e3dfc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
/// ```
Expand Down

0 comments on commit 2e3dfc7

Please sign in to comment.