Module loom::thread

source · []
Expand description

Mock implementation of std::thread.

Structs

An error returned by LocalKey::try_with.

Thread factory, which can be used in order to configure the properties of a new thread.

Mock implementation of std::thread::JoinHandle.

Mock implementation of std::thread::LocalKey.

Mock implementation of std::thread::Thread.

Mock implementation of std::thread::ThreadId.

Functions

Returns a handle to the current thread.

Determines whether the current thread is unwinding because of panic.

Mock implementation of std::thread::park.

Mock implementation of std::thread::spawn.

Yield the thread.