caeryn
Small protected runtime core with isolated execution contexts.
Purpose
caeryn (from Welsh caer, a fortified enclosure) provides a minimal
runtime for managing isolated execution contexts. Each context has its own
state, counters, output, and guard status — like rooms in a fortress.
Features
- Isolated contexts — each context has independent state and counters
- Task queue — submit tasks and run them in batch
- Guard system — pause or stop individual contexts
- Event log — track spawns and lifecycle events
- Zero dependencies
Install
Usage
use ;
let mut rt = new;
let ctx = rt.spawn;
rt.submit.unwrap;
rt.submit.unwrap;
rt.submit.unwrap;
rt.run_all;
let c = rt.context.unwrap;
assert_eq!;
assert_eq!;
License
MIT OR Apache-2.0