Expand description
Native threads.
Structs
- Builder
multitask
Thread factory, which can be used in order to configure the properties of a new thread. - JoinHandle
multitask
An owned permission to join on a thread (block on its termination). - TaskId
multitask
A unique identifier for a thread.
Functions
- current
multitask
Gets the current task. - Exits the current thread.
- set_priority
multitask
Set the priority for current task. - Current thread is going to sleep for the given duration.
- Current thread is going to sleep, it will be woken up at the given deadline.
- spawn
multitask
Spawns a new thread, returning aJoinHandle
for it. - Current thread gives up the CPU time voluntarily, and switches to another ready thread.