bootstack.streams.Handle#

class bootstack.streams.Handle(cancel_fn)#

Bases: object

Cancellable handle returned by stream terminal operators.

Duck-type compatible with Subscription — supports .cancel(), context manager protocol, and .cancelled property.

Returned by Stream.listen() and time-based stream operators (debounce, throttle, delay).

property cancelled: bool#

True once .cancel() has been called.

cancel()#

Detach the handler and clean up all resources in the chain.