trait Publisher[T] extends Any
Mirrors the Publisher interface from the
Reactive Streams project.
A Publisher is a provider of a potentially unbounded number of sequenced
elements, publishing them according to the demand received from its
Subscribers.
A Publisher can serve multiple Subscribers subscribed
dynamically at various points in time.
- Alphabetic
- By Inheritance
- Publisher
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def getClass(): Class[_ <: AnyRef]
- Definition Classes
- Any
- abstract def subscribe(subscriber: Subscriber[_ >: T]): Unit
Request the publisher to start emitting data.
Request the publisher to start emitting data.
This is a factory method and can be called multiple times, each time starting a new Subscription. Each Subscription will work for only a single Subscriber. A Subscriber should only subscribe once to a single Publisher.
If the Publisher rejects the subscription attempt or otherwise fails it will signal the error via Subscriber.onError.
- subscriber
the Subscriber that will consume signals from this Publisher
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any