class Onyx::EDA::Channel::Subscription(T)
- Onyx::EDA::Channel::Subscription(T)
- Reference
- Object
Overview
An event subscription instance. All subscribers are notified about an event unless it doesn't match the filters.
You should not initialize this class manually, use Channel#subscribe
instead.
When you want to stop subscription, call the #unsubscribe
method on a
Subscription
instance or Channel#unsubscribe
.
Defined in:
onyx-eda/channel/subscription/inactive_error.cronyx-eda/channel/subscription.cr
Instance Method Summary
-
#active?
Whether is this subscription currently active.
-
#unsubscribe
Cancel this subscription.
Instance Method Detail
def unsubscribe
#
Cancel this subscription.
May raise InactiveError
if the subscription is currently not active
(i.e. already cancelled).