Subscriber

object Subscriber
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

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

Extension methods for Subscriber.

Extension methods for Subscriber.

object Sync
Companion:
class
trait Sync[-A] extends Subscriber[A] with Sync[A]

A Subscriber.Sync is a Subscriber whose onNext signal is synchronous (i.e. the upstream observable doesn't need to wait on a Future in order to decide whether to send the next event or not).

A Subscriber.Sync is a Subscriber whose onNext signal is synchronous (i.e. the upstream observable doesn't need to wait on a Future in order to decide whether to send the next event or not).

Companion:
object

Value members

Concrete methods

def apply[A](observer: Observer[A], scheduler: Scheduler): Subscriber[A]

Subscriber builder

Subscriber builder

def canceled[A](implicit s: Scheduler): Sync[A]

Helper for building an empty subscriber that doesn't do anything, but that returns Stop on onNext.

Helper for building an empty subscriber that doesn't do anything, but that returns Stop on onNext.

def contramap[A, B](fa: Subscriber[A])(f: B => A): Subscriber[B]

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

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

def dump[A](prefix: String, out: PrintStream)(implicit s: Scheduler): Sync[A]

Builds an Subscriber that just logs incoming events.

Builds an Subscriber that just logs incoming events.

def empty[A](implicit s: Scheduler): Sync[A]

Helper for building an empty subscriber that doesn't do anything, besides logging errors in case they happen.

Helper for building an empty subscriber that doesn't do anything, besides logging errors in case they happen.

def fromReactiveSubscriber[A](subscriber: Subscriber[A], subscription: Cancelable)(implicit s: Scheduler): Subscriber[A]

Given an org.reactivestreams.Subscriber as defined by the Reactive Streams specification, it builds an Subscriber instance compliant with the Monix Rx implementation.

Given an org.reactivestreams.Subscriber as defined by the Reactive Streams specification, it builds an Subscriber instance compliant with the Monix Rx implementation.

def toReactiveSubscriber[A](subscriber: Subscriber[A]): Subscriber[A]

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

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

def toReactiveSubscriber[A](source: Subscriber[A], requestCount: Int): Subscriber[A]

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

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

Value parameters:
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

Implicits

Implicits

final implicit def Extensions[A](target: Subscriber[A]): Extensions[A]

Extension methods for Subscriber.

Extension methods for Subscriber.