bootstack.events.Subscription#

class bootstack.events.Subscription(widget, sequence, bind_id)#

Bases: object

Handle returned by widget.on(...). Cancels the binding when .cancel() is called or the context manager exits.

Idempotent: calling cancel() more than once is a no-op.

property cancelled: bool#
cancel()#