Module may::coroutine [] [src]

Structs

Builder

Coroutine factory, which can be used in order to configure the properties of a new coroutine.

JoinHandle

A join handle to a coroutine

Enums

ParkError

Functions

current

Gets a handle to the thread that invokes it.

park

block the current coroutine until it's get unparked

park_timeout

timeout block the current coroutine until it's get unparked

scope

Create a new scope, for deferred destructors.

sleep

block the current coroutine until timeout

spawn

Spawns a new coroutine, returning a JoinHandle for it.

trigger_cancel_panic
yield_now