pub(crate) fn thread_cleanup()
🔬This is a nightly-only experimental API. (
rt
)Expand description
Clean up the thread-local runtime state. This should be run after all other code managed by the Rust runtime, but will not cause UB if that condition is not fulfilled. Also note that this function is not guaranteed to be run, but skipping it will cause leaks and therefore is to be avoided.