[][src]Module kayrx::fiber

A runtime implementation that runs everything on the current thread.

Structs

Arbiter

Arbiters provide an asynchronous execution environment for fibers, functions and futures. When an Arbiter is created, they spawn a new OS thread, and host an event loop. Some Arbiter functions execute on the current thread.

Builder

Builder struct for a kayrx runtime.

BuilderInner
Handle

Handle to the runtime

Runtime

Single-threaded runtime provides a way to start reactor and runtime on the current thread.

RuntimeInner
System

System is a runtime manager.

SystemRunner

Helper object that runs System's event loop

Functions

spawn
spawn_blocking
spawn_fut

Spawns a future on the current arbiter.

spawn_local