Skip to main content

zip_effect

Function zip_effect 

Source
pub fn zip_effect<A, B, Env, E1, E2>(
    e1: E1,
    e2: E2,
) -> BoxedEffect<(A, B), AnalysisError, Env>
where A: Send + 'static, B: Send + 'static, Env: Clone + Send + Sync + 'static, E1: Effect<Output = A, Error = AnalysisError, Env = Env> + Send + 'static, E2: Effect<Output = B, Error = AnalysisError, Env = Env> + Send + 'static,
Expand description

Zip two effects together, running them in sequence.

§Example

let effect = zip_effect(read_file("a.rs"), read_file("b.rs"));
let (a_content, b_content) = effect.run(&env).await?;