Function loom::thread::park

source · []
pub fn park()
Expand description

Mock implementation of std::thread::park.

Blocks unless or until the current thread’s token is made available.

A call to park does not guarantee that the thread will remain parked forever, and callers should be prepared for this possibility.