functype-io 0.1.0

Async IO effect type for functype
Documentation

functype-io: Lazy, composable IO effect type for functype.

Provides IO<A>, a lazy, composable effect type. Nothing executes until .run() is called.

Examples

use functype_io::IO;

let io = IO::succeed(42).map(|x| x * 2);
assert_eq!(io.run().unwrap(), 84);