Functioncorev0.7.0
defineEffectGate
Builds an EffectGate from a check and a commit. check peeks and refuses by throwing, and commit applies the side effect, running only once the whole gate set passes so a later refusal never commits. In an or, a refusing arm's queued commit is rolled back. This is how Cooldown peeks in check and charges the slot in commit.
See also:defineGate, the @Gated decorator from your transport package, Cooldown
Name
The gate's literal name, used to name a mismatch error.
NameThe gate's literal name, used to name a mismatch error.
Ctx
The context both check and commit read, inferred from the ctx annotation.
CtxThe context both check and commit read, inferred from the ctx annotation.