class Onyx::EDA::Channel::Subscription(T)

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.cr
onyx-eda/channel/subscription.cr

Instance Method Summary

Instance Method Detail

def active? #

Whether is this subscription currently active.


[View source]
def unsubscribe #

Cancel this subscription. May raise InactiveError if the subscription is currently not active (i.e. already cancelled).


[View source]