Interfacecorev0.3.1
Gate
A precondition attached to a handler. It refuses by throwing a Notice (a reply) or a Silence (a drop with no reply), and passes by returning. Ctx is the context it requires, so a gate that reads a field absent on a handler's context is rejected at compile time. Name is captured as a literal so a mismatch error can name the gate. Build one with defineGate or defineEffectGate.
See also:defineGate
interface Gate<
Ctx extends GateContextBase = GateContextBase,
Name extends string = string
>Ctx
The context the gate requires. A field missing from it is a compile error.
Ctx extends GateContextBase = GateContextBaseName
The gate's literal name, named in a mismatch error.