Function kill_thread_graceful

Source
pub unsafe fn kill_thread_graceful<T>(handle: JoinHandle<T>)
Available on Unix only.
Expand description

Only kills the thread if it has enabled cancellation, then performs cleanup. See man pthread_cancel for more information.

ยงSafety

See man pthread_cancel.