Extensions

final class Extensions[A](val target: Observer[A]) extends AnyVal

Extension methods for Observer.

Extension methods for Observer.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def contramap[B](f: B => A): Observer[B]

Given a contravariant mapping function, transform the source Observer by transforming the input.

Given a contravariant mapping function, transform the source Observer by transforming the input.

def feed(iterable: Iterable[A])(s: Scheduler): Future[Ack]

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value Params
iterable

is the collection of items to push downstream

def feed(subscription: BooleanCancelable, iterable: Iterable[A])(s: Scheduler): Future[Ack]

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value Params
iterable

is the collection of items to push downstream

subscription

is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped

def feed(iterator: Iterator[A])(s: Scheduler): Future[Ack]

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value Params
iterator

is the collection of items to push downstream

def feed(subscription: BooleanCancelable, iterator: Iterator[A])(s: Scheduler): Future[Ack]

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value Params
iterator

is the collection of items to push downstream

subscription

is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped

def onNextAll(xs: Iterable[A])(s: Scheduler): Future[Ack]

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value Params
xs

the traversable object containing the elements to feed into our observer.

def toReactive(s: Scheduler): Subscriber[A]

Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

def toReactive(requestCount: Int)(s: Scheduler): Subscriber[A]

Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Value Params
requestCount

a strictly positive number, representing the size of the buffer used and the number of elements requested on each cycle when communicating demand, compliant with the reactive streams specification

Concrete fields

val target: Observer[A]