Threads
Rust provides a mechanism for spawning native OS threads via the spawn
function, the argument of this function is a moving closure.
These threads will be scheduled by the OS.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Rust provides a mechanism for spawning native OS threads via the spawn
function, the argument of this function is a moving closure.
These threads will be scheduled by the OS.