Module shuttle::thread[][src]

Expand description

Shuttle’s implementation of std::thread.

Structs

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).

Thread

A handle to a thread.

ThreadId

A unique identifier for a running thread

Functions

current

Get a handle to the thread that invokes it

sleep

Puts the current thread to sleep for at least the specified amount of time.

spawn

Spawn a new thread, returning a JoinHandle for it.

yield_now

Cooperatively gives up a timeslice to the Shuttle scheduler.