LazyPublisher

trait LazyPublisher extends Publisher

A publisher that subscribes itself to an underlying event source not before the first reaction is installed. Can unsubscribe itself when the last reaction is uninstalled.

A publisher that subscribes itself to an underlying event source not before the first reaction is installed. Can unsubscribe itself when the last reaction is uninstalled.

trait Publisher
trait Reactor
class Object
trait Matchable
class Any

Value members

Abstract methods

protected def onFirstSubscribe(): Unit
protected def onLastUnsubscribe(): Unit

Concrete methods

override def subscribe(listener: Reaction): Unit
Definition Classes
Publisher
override def unsubscribe(listener: Reaction): Unit
Definition Classes
Publisher

Inherited methods

def deafTo(ps: Publisher*): Unit

Installed reaction won't receive events from the given publisher anylonger.

Installed reaction won't receive events from the given publisher anylonger.

Inherited from
Reactor
def listenTo(ps: Publisher*): Unit

Listen to the given publisher as long as deafTo isn't called for them.

Listen to the given publisher as long as deafTo isn't called for them.

Inherited from
Reactor
def publish(e: Event): Unit

Notify all registered reactions.

Notify all registered reactions.

Inherited from
Publisher

Inherited fields

protected val listeners: RefSet[Reaction]
Inherited from
Publisher
val reactions: Reactions

All reactions of this reactor.

All reactions of this reactor.

Inherited from
Reactor