Structs§
- Access
Error πAn error returned byLocalKey::try_with
. - Builder πThread factory, which can be used in order to configure the properties of a new thread.
- Join
Handle πAn owned permission to join on a thread (block on its termination). - Local
Key πA thread local storage key which owns its contents. - Thread πA handle to a thread.
- Thread
Id πA unique identifier for a running thread.
Functions§
- 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 π