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 094 — `with_span` pushes a logical span around nested work.
use id_effect::{Never, run_blocking, succeed, with_span};

fn main() {
  let eff = with_span(succeed::<u8, Never, ()>(9), "demo.span");
  assert_eq!(run_blocking(eff, ()), Ok(9));
  println!("094_tracing_spans ok");
}