run_effect_with_env

Function run_effect_with_env 

Source
pub fn run_effect_with_env<T: Send + 'static, E: AnalysisEnv + Sync + 'static>(
    effect: BoxedEffect<T, AnalysisError, E>,
    env: &E,
) -> Result<T>
Expand description

Run an effect with a custom environment.

This is useful when you have an existing environment or need custom I/O implementations.

Note: This uses tokio’s block_on to run the async effect synchronously.