RAII container for managing multiple subscriptions as a group. More...
RAII container for managing multiple subscriptions as a group.
TapScope simplifies managing multiple related subscriptions by collecting them in one object. When the TapScope is destroyed or DetachAll() is called, all contained subscriptions are automatically unsubscribed.
This is useful for managing event subscriptions tied to an object's lifetime - simply add all subscriptions to a TapScope member and they'll be cleaned up automatically when the object is destroyed.
Features:
Example usage: