Function origin::at_thread_exit[][src]

pub fn at_thread_exit(func: Box<dyn FnOnce()>)
Expand description

Registers a function to call when the current thread exits.

Safety

This arranges for func to be called, and passed obj, when the thread exits.