Skip to main content

eval_async_with_storage

Function eval_async_with_storage 

Source
pub async fn eval_async_with_storage<D>(
    node: &Node,
    ctx: Arc<dyn CtxStorage>,
    dispatcher: &D,
) -> Result<(), EvalError>
where D: AsyncDispatcher + ?Sized,
Expand description

Storage-backed async evaluator — canonical entry.

Arc<dyn CtxStorage> 経由で ctx を共有することで、 dispatch().await suspend 中に外部 task が同じ ctx に write できる (= dynamic State injection 経路)。 Step 評価の境界で ctx.snapshot() を取って Expr eval に渡す。