pub fn at_thread_exit(func: Box<dyn FnOnce()>)
Registers a function to call when the current thread exits.
This arranges for func to be called, and passed obj, when the thread exits.
func
obj