The Consumer
is a specification of how to consume an observable.
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.
Used by Observable.materialize.
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
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
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.
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:
- Unbounded - Fail - BackPressure
Used in BufferedSubscriber to implement buffering when concurrent actions are needed, such as in Channels or in Observable.merge.
Represents a factory for an input/output channel for broadcasting input to multiple subscribers.
The companion object of Consumer, defines consumer builders.
The MulticastStrategy enumerated.
Observable builders.
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.