BaseSubscription
Provides the default implementation of the Subscription trait.
Exposes two new abstract methods: onSubscribe
and onUnsubscribe
. A typical way to implement them is
to have a reference to the source of events which implements the EventSource trait and call subscribe(this)
on that source (where this
is the subscription).
Provides the default implementation of the Subscription trait.
Exposes two new abstract methods: onSubscribe
and onUnsubscribe
. A typical way to implement them is
to have a reference to the source of events which implements the EventSource trait and call subscribe(this)
on that source (where this
is the subscription).
For examples:
- Value Params
- context
A weak reference to the event context within which the subscription lives.
- See also