[−][src]Function eff::lazy::lazy
pub fn lazy<T, F>(v: F) -> impl Effectful<Output = T, Effect = !> where
F: FnOnce() -> T,
Converts a thunk into a one-shot effectful computation This function is usually used to convert closures into an effect handler (which must be effectful)