Warn that detached threads may not call libuv

This seems like an important caveat, but was not documented.

Ref https://github.com/JuliaLang/julia/pull/60056#issuecomment-3509030539
This commit is contained in:
Keno Fischer 2025-11-10 17:43:58 -05:00 committed by GitHub
parent b33162dd0b
commit ab2088d4a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,8 @@ Threads
Detaches a thread. Detached threads automatically release their
resources upon termination, eliminating the need for the application to
call `uv_thread_join`.
call `uv_thread_join`. It is undefined behavior for the thread referenced by `tid`
to call any libuv APIs after being detached.
.. versionadded:: 1.50.0