id_effect 0.10.1

Effect<A, E, R>: lazy Send effects over a typed capability list, run on a fiber runtime (Tokio executor), with layers, streams, schedules and coordination
Documentation
1
2
3
4
5
6
7
8
9
//! Ex 003 — `Effect::map` transforms the success value.
use id_effect::Exit;
use id_effect::{Effect, succeed};

fn main() {
  let program: Effect<i32> = succeed(21).map(|n: i32| n * 2);
  assert_eq!(program.block_on(), Exit::succeed(42));
  println!("003_map ok");
}