execution_save_gate.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_save_gate.bend as Execution_save_gate
1 import
import Base
Types
type Outcome source · line 3 · raw
@-Value:Data -> @-Error:Data -> Data
Saved@-Value:Data -> @-Error:Data -> @value:Value -> Outcome<Value, Error>
RefusedPending@-Value:Data -> @-Error:Data -> Outcome<Value, Error>
Refused@-Value:Data -> @-Error:Data -> @error:Error -> Outcome<Value, Error>
Templates
template checked source · line 10 · raw
@-Actual:Type -> @-Value:Data -> @-Error:Data -> @-project:(@_:Actual -> Pair(Actual, Outcome<Value, Error>)) -> @result:Pair(Actual, Bool) -> Pair(Actual, Outcome<Value, Error>)
Framework boundary. The ordinary adapter supplies the closed owner inventory, not deferred history or a caller's estimate of outstanding work.
template save source · line 14 · raw
@-Actual:Type -> @-Value:Data -> @-Error:Data -> @-pending:(@_:Actual -> Pair(Actual, Bool)) -> @-project:(@_:Actual -> Pair(Actual, Outcome<Value, Error>)) -> @actual:Actual -> Pair(Actual, Outcome<Value, Error>)