Module shuttle::asynch[][src]

Expand description

Shuttle’s implementation of an async executor, roughly equivalent to futures::executor.

The spawn method spawns a new asynchronous task that the executor will run to completion. The block_on method blocks the current thread on the completion of a future.

Structs

JoinHandle

An owned permission to join on an async task (await its termination).

Enums

JoinError

Task failed to execute to completion.

Functions

block_on

Run a future to completion on the current thread.

spawn

Spawn a new async task that the executor will run to completion.

yield_now

Yields execution back to the scheduler.