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
//! Ex 002 — Failure surfaces at the program boundary as `Err`.
use id_effect::{fail, run_blocking};

fn main() {
  let program = fail::<(), &'static str, ()>("not_ready");
  assert_eq!(run_blocking(program, ()), Err("not_ready"));
  println!("002_fail_boundary ok");
}