BaseSubscription

abstract class BaseSubscription(context: WeakReference[EventContext]) extends 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).

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
class Object
trait Matchable
class Any

Value members

Concrete methods

def destroy(): Unit
def disable(): Unit
def enable(): Unit
def subscribe(): Unit
def unsubscribe(): Unit