Function kill_thread_forcibly_exit_code

Source
pub unsafe fn kill_thread_forcibly_exit_code<T>(
    handle: JoinHandle<T>,
    exit_code: u32,
)
Available on Windows only.
Expand description

Forcibly and immediately stops the thread, without any cleanup.

ยงSafety

See https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminatethread.