Expand description
Native threads.
Structs§
- Builder
multitask - Thread factory, which can be used in order to configure the properties of a new thread.
 - Join
Handle multitask - An owned permission to join on a thread (block on its termination).
 - Thread
multitask - A handle to a thread.
 - Thread
Id multitask - A unique identifier for a running thread.
 
Functions§
- available_
parallelism  - Returns an estimate of the default amount of parallelism a program should use.
 - current
multitask - Gets a handle to the thread that invokes it.
 - exit
 - Exits the current thread.
 - sleep
 - Current thread is going to sleep for the given duration.
 - sleep_
until  - Current thread is going to sleep, it will be woken up at the given deadline.
 - spawn
multitask - Spawns a new thread, returning a 
JoinHandlefor it. - yield_
now  - Current thread gives up the CPU time voluntarily, and switches to another ready thread.