Module thread
Source - 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 π
- An owned permission to join on a thread (block on its termination).
- LocalKey π
- A thread local storage (TLS) key which owns its contents.
- Thread π
- A handle to a thread.
- ThreadId π
- A unique identifier for a running thread.
- current π
- Gets a handle to the thread that invokes it.
- panicking π
- Determines whether the current thread is unwinding because of panic.
- park π
- Blocks unless or until the current threadβs token is made available.
- park_timeout π
- Blocks unless or until the current threadβs token is made available or
the specified duration has been reached (may wake spuriously).
- sleep π
- Puts the current thread to sleep for at least the specified amount of time.
- spawn π
- Spawns a new thread, returning a
JoinHandle
for it. - yield_now π
- Result π
- A specialized
Result
type for threads.