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
//! Ex 039 — `run_async` polls an effect to completion.
use id_effect::{run_async, succeed};

fn main() {
  assert_eq!(
    pollster::block_on(run_async(succeed::<u8, (), ()>(9_u8), ())),
    Ok(9)
  );
  println!("039_run_async ok");
}