monix.reactive

Type members

Classlikes

abstract class Consumer[-In, +R] extends Observable[In] => Task[R] with Serializable

The Consumer is a specification of how to consume an observable.

The Consumer is a specification of how to consume an observable.

It is a factory of subscribers with a completion callback attached, being effectively a way to transform observables into tasks for less error prone consuming of streams.

Companion:
object
object Consumer

The companion object of Consumer, defines consumer builders.

The companion object of Consumer, defines consumer builders.

Companion:
class
sealed abstract class MulticastStrategy[+A] extends Serializable

The MulticastStrategy specifies the strategy for building data-sources that are shared between multiple subscribers.

The MulticastStrategy specifies the strategy for building data-sources that are shared between multiple subscribers.

By default observables tend to be cold.

Companion:
object

The MulticastStrategy enumerated.

The MulticastStrategy enumerated.

Companion:
class
sealed abstract class Notification[+A] extends Serializable
Companion:
class
abstract class Observable[+A] extends Serializable

The Observable type that implements the Reactive Pattern.

The Observable type that implements the Reactive Pattern.

Provides methods of subscribing to the Observable and operators for combining observable sources, filtering, modifying, throttling, buffering, error handling and others.

See the available documentation at: https://monix.io

Companion:
object
object Observable

Observable builders.

Observable builders.

Companion:
class
@implicitNotFound("Cannot find implicit value for ObservableLike[${F}].\nBuilding this implicit value might depend on having an implicit\ns.c.ExecutionContext in scope, a Scheduler or some equivalent type.")
trait ObservableLike[F[_]] extends FunctionK[F, Observable]

A lawless type class that provides conversions to Observable.

A lawless type class that provides conversions to Observable.

Sample:

 // Conversion from cats.Eval
 import cats.Eval

 val source0 = Eval.always(1 + 1)
 val task0 = ObservableLike[Eval].apply(source0)

 // Conversion from Future
 import scala.concurrent.Future

 val source1 = Future.successful(1 + 1)
 val task1 = ObservableLike[Future].apply(source1)

 // Conversion from IO
 import cats.effect.IO

 val source2 = IO(1 + 1)
 val task2 = ObservableLike[IO].apply(source2)

See Observable.from

Companion:
object
Companion:
class
trait Observer[-A] extends Serializable

The Observer from the Rx pattern is the trio of callbacks that get subscribed to an Observable for receiving events.

The Observer from the Rx pattern is the trio of callbacks that get subscribed to an Observable for receiving events.

The events received must follow the Rx grammar, which is: onNext * (onComplete | onError)?

That means an Observer can receive zero or multiple events, the stream ending either in one or zero onComplete or onError (just one, not both), and after onComplete or onError, a well behaved Observable implementation shouldn't send any more onNext events.

Companion:
object
object Observer
Companion:
class
sealed abstract class OverflowStrategy[+A] extends Serializable

Represents the buffering overflowStrategy chosen for actions that need buffering, instructing the pipeline what to do when the buffer is full.

Represents the buffering overflowStrategy chosen for actions that need buffering, instructing the pipeline what to do when the buffer is full.

For the available policies, see:

Used in BufferedSubscriber to implement buffering when concurrent actions are needed, such as in Channels or in Observable.merge.

Companion:
object
Companion:
class
abstract class Pipe[I, +O] extends Serializable

Represents a factory for an input/output channel for broadcasting input to multiple subscribers.

Represents a factory for an input/output channel for broadcasting input to multiple subscribers.

Companion:
object
object Pipe
Companion:
class