Expand description
Native threads.
Structs§
- Builder
multitaskThread factory, which can be used in order to configure the properties of a new thread. - JoinHandle
multitaskAn owned permission to join on a thread (block on its termination). - Thread
multitaskA handle to a thread. - ThreadId
multitaskA unique identifier for a running thread.
Functions§
- current
multitaskGets a handle to the thread that invokes it. - Exits the current thread.
- 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
multitaskSpawns a new thread, returning aJoinHandlefor it. - Current thread gives up the CPU time voluntarily, and switches to another ready thread.