use futures::executor; use futures_async_combinators::future::*; fn main() { executor::block_on(async { let future = ready(Ok::(1)); let future = and_then(future, |x| ready(Ok::(x + 3))); let future = inspect(future, |x| { dbg!(x); }); assert_eq!(future.await, Ok(4)); }); }