context 1.0.0

Cooperative multitasking for Rust using Boost.Context

Crate context [] [src]

This project provides an easy interface to the famous Boost.Context library and thus the building blocks for higher-level abstractions, like coroutines, cooperative threads (userland threads) or an equivalent to the C# keyword "yield".

Reexports

pub use context::{Context, Transfer, ContextFn, ResumeOntopFn};

Modules

context

Provides the Context and Transfer types for saving and restoring the current state of execution.

stack

Provides utilities to allocate memory suitable as stack memory for Context.