mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
Both had grown the same thing: a depth-one channel, a non-blocking send guarded by a select with an empty default, and a WaitForEvent selecting over it and the context. That is what vm.Latch is, so they use it. Four copies of the pattern become none, and the comment explaining why the send is non-blocking lives with the primitive rather than beside each caller. Co-authored-by: Hanzo Dev <[email protected]>