kwokka 0.1.1

completion-based async runtime with optional orchestration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Task surface -- structured scopes, scheduler markers, and yielding.
//!
//! [`scope`] fans a task out into children that all settle before the
//! scope resolves; [`scope_send`] is its `Send`-bounded twin whose
//! children may migrate across the stealing crew. [`yield_now`] hands the
//! worker back to the scheduler for one pass. The [`Affine`] and
//! [`Stealing`] markers select the scheduler discipline at the type level
//! through the [`Mode`] bound. Wall-clock sleeping lives in
//! [`crate::time`].

pub use kwokka_runtime::task::{
    Affine, Mode, Scope, SpawnError, Stealing, YieldNow, scope, scope_send, yield_now,
};