Skip to main content

Module thread

Module thread 

Source
Expand description

Thread-based execution of work.

thread

Extends: std::{thread}


Macros§

sleep4linux or std
🧵 🕘 A more compact thread sleep.
thread_localstd
🧵 std Declare a new thread local storage key of type ThreadLocalKey.

Structs§

Threadstd
🧵 🫆 std A handle to a thread.
ThreadAccessErrorstd
🧵 🚩 std An error returned by ThreadLocalKey::try_with.
ThreadBuilderstd
🏗️ 🧵 std Thread factory, which can be used to configure the properties of a new thread.
ThreadIdstd
🧵 🫆 std A unique identifier for a running thread.
ThreadJoinHandlestd
🧵 std An owned permission to join on a thread (block on its termination).
ThreadLocalKeystd
🧵 std A thread local storage key which owns its contents.
ThreadScopestd
🧵 std A scope to spawn scoped threads in.
ThreadScopedJoinHandlestd
🧵 std An owned permission to join on a scoped thread (block on its termination).

Traits§

ThreadExtstd
🧵 🛠️ Extension trait providing additional methods for Threads.

Type Aliases§

ThreadResultstd
🧵 ⚖️ std A specialized Result type for threads.