async-hofs

Various extention traits for providing asynchronous higher-order functions.

crates.io docs.rs MIT licensed CI Status

```rs // This won't make any name conflicts since all imports inside prelude are anonymous. use async_hofs::prelude::*;

asserteq!( Some(1).asyncmap(|x| async move { x + 2 }).await, Some(3), );

type Result = core::result::Result;

asserteq!( Result::Ok(1).asyncandthen(|| async move { Err(77) }).await, Result::Err(77) ); ```