[−][src]Crate greenie
Macros
iterate_generator |
Structs
Generator | |
Runtime |
Enums
GeneratorState | The result of a generator resumption. This enum is returned from the Generator::resume method and indicates the possible return values of a generator. Currently this corresponds to either a suspension point (Yielded) or a termination point (Complete). |
State |
Constants
DEFAULT_STACK_SIZE | 256 kb stack |
Functions
generator_return | Complete generator with value |
generator_yield | Suspend generator with value |
spawn_greenie | Spawns a new thread |
thread_sleep | W.I.P, doesn't work now Puts the current thread to sleep for at least the specified amount of time. The thread may sleep longer than the duration specified due to scheduling specifics. It will never sleep less. |
yield_thread | Yields thread |
Attribute Macros
greenify | Inserts |