kwokka 0.1.1

completion-based async runtime with optional orchestration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! The `#[kwokka::main(stealing)]` entry: an async body on a work-stealing crew.
//!
//! The macro builds `Runtime::stealing()` and drives this body with
//! `block_on`. Gated on the `stealing` feature, which turns on the
//! work-stealing crew in the runtime.

#[kwokka::main(stealing)]
async fn main() {
    // black_box keeps the work from being optimized away without printing
    // (workspace lints deny stdout) or asserting (banned outside tests).
    core::hint::black_box(41 + 1);
}