线程
Rust 通过 spawn
函数提供了一种生成原生操作系统线程的机制,该函数的参数是一个移动闭包。
这些线程将由操作系统进行调度。
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 通过 spawn
函数提供了一种生成原生操作系统线程的机制,该函数的参数是一个移动闭包。
这些线程将由操作系统进行调度。