Low Priority Thread
This is a 1-function crate that sets the calling thread's priority to the lowest platform-specific value possible.
let result: = lpt;
if result.is_ok
Windows
Uses SetThreadPriority() with THREAD_PRIORITY_IDLE (-15).
Unix
Uses libc::nice() with the max nice level.
- On
macOSand*BSD:+20 - On
Linux:+19