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 043 — `CancellationToken::cancel` flips the flag.
use id_effect::CancellationToken;

fn main() {
  let t = CancellationToken::new();
  assert!(!t.is_cancelled());
  assert!(t.cancel());
  assert!(t.is_cancelled());
  println!("043_cancellation_token ok");
}