lash-core 0.1.0-alpha.111

Sans-IO turn machine and runtime kernel for the lash agent runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

pub struct TriggerLocalExecution {
    pub store: Arc<dyn crate::TriggerStore>,
}

impl TriggerLocalExecution {
    pub async fn execute(
        self,
        operation_id: &str,
        command: crate::TriggerCommand,
    ) -> Result<crate::TriggerEffectResult, RuntimeEffectControllerError> {
        self.store
            .execute_command(operation_id, command)
            .await
            .map_err(RuntimeEffectControllerError::from)
    }
}