id_effect 0.2.0

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
Documentation
1
2
3
4
5
6
7
8
9
10
//! Ex 044 — Child tokens inherit parent cancellation.
use id_effect::CancellationToken;

fn main() {
  let p = CancellationToken::new();
  let c = p.child_token();
  p.cancel();
  assert!(c.is_cancelled());
  println!("044_cancellation_tree ok");
}