[go: up one dir, main page]

Module thread

Module thread 

Source
Expand description

Mock implementation of std::thread.

Re-exports§

pub use std::thread::panicking;

Structs§

AccessError
An error returned by LocalKey::try_with.
Builder
Thread factory, which can be used in order to configure the properties of a new thread.
JoinHandle
Mock implementation of std::thread::JoinHandle.
LocalKey
Mock implementation of std::thread::LocalKey.
Thread
Mock implementation of std::thread::Thread.
ThreadId
Mock implementation of std::thread::ThreadId.

Functions§

current
Returns a handle to the current thread.
park
Mock implementation of std::thread::park.
spawn
Mock implementation of std::thread::spawn.
yield_now
Yield the thread.