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
11
12
//! Ex 098 — `run_test_with_clock` accepts an explicit `TestClock` (deterministic time source).
use id_effect::{Exit, TestClock, run_test_with_clock, succeed};
use std::time::Instant;

fn main() {
  let clock = TestClock::new(Instant::now());
  assert_eq!(
    run_test_with_clock(succeed::<u8, (), ()>(8_u8), (), clock),
    Exit::succeed(8)
  );
  println!("098_run_test_clock_hygiene ok");
}