Skip to main content

Module kernel

Module kernel 

Source
Expand description

Stratum 2 — Core Effect: Effect, Thunk, Result, Reader.

The effect submodule holds Effect, BoxFuture, and IntoBind. thunk, result, and reader are the supporting kernel types and combinators described in SPEC.md.

Re-exports§

pub use self::effect::BoxFuture;
pub use self::effect::Effect;
pub use self::effect::IntoBind;
pub use self::effect::acquire_release;
pub use self::effect::box_future;
pub use self::effect::fail;
pub use self::effect::from_async;
pub use self::effect::into_bind;
pub use self::effect::pure;
pub use self::effect::scope_with;
pub use self::effect::scoped;
pub use self::effect::succeed;
pub use self::effect::unwrap_infallible;

Modules§

effect
Effect — the core abstraction for effectful computation.
reader
Reader — computation that requires an environment.
result
Result — computation that may succeed or fail.
thunk
Thunk — a suspended computation.