Trait concurrency_traits::ThreadFunctions [−][src]
Expand description
Functions to allow the current thread to interact in ways a thread might need to.
Required methods
fn sleep(duration: Duration)
[src]
Expand description
Sleeps the current thread for a specified duration. Analog for std::thread::sleep
.
fn yield_now()
[src]
Expand description
Yields the current thread to the OS. Analog for std::thread::yield_now
.
Implementors
impl ThreadFunctions for StdThreadFunctions
[src]
impl ThreadFunctions for StdThreadFunctions
[src]