Connection¶
What Connect and Once hand back: a handle on one handler, and the only way to detach it again.
It carries a Connected boolean you may read, true until the handler is
detached. Everything else on it is Scribe's own bookkeeping.
Methods¶
:Disconnect¶
Detaches the handler. It will not run on any later fire, and Connected becomes
false.
Calling it twice is a no-op rather than an error, so a teardown path that runs more than once is safe. It is also safe from inside a handler, including on another connection of the same signal: a connection detached mid-fire does not run for that fire if its turn has not come yet.