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 060 — `Stream::range` materializes as a single chunk, then ends.
use id_effect::{Stream, run_blocking};

fn main() {
  let s = Stream::range(1, 5).run_collect();
  assert_eq!(run_blocking(s, ()), Ok(vec![1, 2, 3, 4]));
  println!("060_stream_range ok");
}