Numeric leases for values a plain-data command cannot carry.
A simulation command must survive structuredClone, so anything live (a
callback, an externally-owned RNG stream, a world-query closure) travels as
a numeric id resolved inside the rule. This is the one-line container for
that recipe: put a value, carry the id in the command, get it in the
rule, and drop it when done. with scopes the lease so the drop runs
even when the rule throws.
Numeric leases for values a plain-data command cannot carry.
A simulation command must survive
structuredClone, so anything live (a callback, an externally-owned RNG stream, a world-query closure) travels as a numeric id resolved inside the rule. This is the one-line container for that recipe:puta value, carry the id in the command,getit in the rule, anddropit when done.withscopes the lease so thedropruns even when the rule throws.Example