Implicit conversion from Future to Observable.
Implicit conversion from Observable to Publisher.
Given a list of source Observables, emits all of the items from the first of these Observables to emit an item and cancel the rest.
Creates an Observable that emits the given elements.
Creates an Observable that emits the given elements.
Usage sample:
val obs = Observable(1, 2, 3, 4) obs.dump("MyObservable").subscribe() //=> 0: MyObservable-->1 //=> 1: MyObservable-->2 //=> 2: MyObservable-->3 //=> 3: MyObservable-->4 //=> 4: MyObservable completed
Creates a combined observable from 6 source observables.
Creates a combined observable from 6 source observables.
This operator behaves in a similar way to Observable!.zip,
but while zip
emits items only when all of the zipped source
Observables have emitted a previously unzipped item, combine
emits an item whenever any of the source Observables emits an
item (so long as each of the source Observables has emitted at
least one item).
Creates a combined observable from 5 source observables.
Creates a combined observable from 5 source observables.
This operator behaves in a similar way to Observable!.zip,
but while zip
emits items only when all of the zipped source
Observables have emitted a previously unzipped item, combine
emits an item whenever any of the source Observables emits an
item (so long as each of the source Observables has emitted at
least one item).
Creates a combined observable from 4 source observables.
Creates a combined observable from 4 source observables.
This operator behaves in a similar way to Observable!.zip,
but while zip
emits items only when all of the zipped source
Observables have emitted a previously unzipped item, combine
emits an item whenever any of the source Observables emits an
item (so long as each of the source Observables has emitted at
least one item).
Creates a combined observable from 3 source observables.
Creates a combined observable from 3 source observables.
This operator behaves in a similar way to Observable!.zip,
but while zip
emits items only when all of the zipped source
Observables have emitted a previously unzipped item, combine
emits an item whenever any of the source Observables emits an
item (so long as each of the source Observables has emitted at
least one item).
Creates a combined observable from 2 source observables.
Creates a combined observable from 2 source observables.
This operator behaves in a similar way to Observable!.zip,
but while zip
emits items only when all of the zipped source
Observables have emitted a previously unzipped item, combine
emits an item whenever any of the source Observables emits an
item (so long as each of the source Observables has emitted at
least one item).
Given an observable sequence, it zips them together returning a new observable that generates sequences.
Concatenates the given list of observables into a single observable.
Concatenates the given list of observables into a single observable.
Concatenates the given list of observables into a single observable. Delays errors until the end.
Observable constructor for creating an Observable from the specified function.
Returns an Observable that calls an Observable factory to create an Observable for each new Observer that subscribes.
Returns an Observable that calls an Observable factory to create an Observable for each new Observer that subscribes. That is, for each subscriber, the actual Observable that subscriber observes is determined by the factory function.
The defer Observer allows you to defer or delay emitting items from an Observable until such time as an Observer subscribes to the Observable. This allows an Observer to easily obtain updates or a refreshed version of the sequence.
is the Observable factory function to invoke for each Observer that subscribes to the resulting Observable
Creates an observable that doesn't emit anything, but immediately
calls onComplete
instead.
Creates an Observable that emits an error.
Concatenates the given list of observables into a single observable.
Concatenates the given list of observables into a single observable.
Concatenates the given list of observables into a single observable. Delays errors until the end.
Creates an Observable that emits the given elements exactly.
Given a java.util.concurrent.Callable
, converts it into an
Observable that executes it, then emits the result.
Converts a Future to an Observable.
Creates an Observable that emits the elements of the given iterable.
Creates an Observable that emits the elements of the given iterator
.
Given a org.reactivestreams.Publisher
, converts it into a
Monifu / Rx Observable.
Given a org.reactivestreams.Publisher
, converts it into a
Monifu / Rx Observable.
See the Reactive Streams protocol that Monifu implements.
Observable!.toReactive for converting
Given a runnable, converts it into an Observable that executes it,
then signals the execution with a Unit
being emitted.
Given an initial state and a generator function that produces the next state and the next element in the sequence, creates an observable that keeps generating elements produced by our generator function.
Given an initial state and a generator function that produces the next state and the next element in the sequence, creates an observable that keeps generating elements produced by our generator function.
from monifu.concurrent.Implicits.{globalScheduler => s} from monifu.util import Random def randomDoubles(): Observable[Double] = Observable.fromStateAction(Random.double)(s.currentTimeMillis())
Given a lazy by-name argument, converts it into an Observable that emits a single element.
Creates an Observable that emits auto-incremented natural numbers (longs) spaced by a given time interval.
Creates an Observable that emits auto-incremented natural numbers
(longs) spaced by a given time interval. Starts from 0 with no
delay, after which it emits incremented numbers spaced by the
period
of time. The given period
of time acts as a fixed
delay between successive events.
the delay between 2 successive events
Creates an Observable that emits auto-incremented natural numbers
(longs) at a fixed rate, as given by the specified period
.
Creates an Observable that emits auto-incremented natural numbers
(longs) at a fixed rate, as given by the specified period
. The
time it takes to process an onNext
event gets subtracted from
the specified period
and thus the created observable tries to
emit events spaced by the given time interval, regardless of how
long the processing of onNext
takes.
This version of the intervalAtFixedRate
allows specifying an
initialDelay
before events start being emitted.
is the initial delay before emitting the first event
the period between 2 successive onNext
events
Creates an Observable that emits auto-incremented natural numbers
(longs) at a fixed rate, as given by the specified period
.
Creates an Observable that emits auto-incremented natural numbers
(longs) at a fixed rate, as given by the specified period
. The
time it takes to process an onNext
event gets subtracted from
the specified period
and thus the created observable tries to
emit events spaced by the given time interval, regardless of how
long the processing of onNext
takes.
the period between 2 successive onNext
events
Creates an Observable that emits auto-incremented natural numbers (longs) spaced by a given time interval.
Creates an Observable that emits auto-incremented natural numbers
(longs) spaced by a given time interval. Starts from 0 with no
delay, after which it emits incremented numbers spaced by the
period
of time. The given period
of time acts as a fixed
delay between successive events.
is the delay to wait before emitting the first event
the time to wait between 2 successive events
Creates an Observable that emits auto-incremented natural numbers (longs) spaced by a given time interval.
Creates an Observable that emits auto-incremented natural numbers
(longs) spaced by a given time interval. Starts from 0 with no
delay, after which it emits incremented numbers spaced by the
period
of time. The given period
of time acts as a fixed
delay between successive events.
the delay between 2 successive events
Merges the given list of observables into a single observable.
Merges the given list of observables into a single observable.
Merges the given list of observables into a single observable. Delays errors until the end.
Creates an Observable that doesn't emit anything and that never completes.
Creates an Observable that emits items in the given range.
Creates an Observable that emits items in the given range.
the range start
the range end
increment step, either positive or negative
Creates an Observable that continuously emits the given item repeatedly.
Repeats the execution of the given task
, emitting
the results indefinitely.
Create an Observable that repeatedly emits the given item
, until
the underlying Observer cancels.
Wraps this Observable into a org.reactivestreams.Publisher
.
Wraps this Observable into a org.reactivestreams.Publisher
.
See the Reactive Streams
protocol that Monifu implements.
is
Wraps this Observable into a org.reactivestreams.Publisher
.
Wraps this Observable into a org.reactivestreams.Publisher
.
See the Reactive Streams
protocol that Monifu implements.
Creates an Observable that only emits the given a
Create an Observable that emits a single item after a given delay.
Creates a new Observable from three observables, by emitting elements combined in tuples of 6 elements.
Creates a new Observable from three observables, by emitting elements combined in tuples of 6 elements. If one of the Observable emits fewer events than the others, then the rest of the unpaired events are ignored.
Creates a new Observable from three observables, by emitting elements combined in tuples of 5 elements.
Creates a new Observable from three observables, by emitting elements combined in tuples of 5 elements. If one of the Observable emits fewer events than the others, then the rest of the unpaired events are ignored.
Creates a new Observable from three observables, by emitting elements combined in tuples of 4 elements.
Creates a new Observable from three observables, by emitting elements combined in tuples of 4 elements. If one of the Observable emits fewer events than the others, then the rest of the unpaired events are ignored.
Creates a new Observable from three observables, by emitting elements combined in tuples of 3 elements.
Creates a new Observable from three observables, by emitting elements combined in tuples of 3 elements. If one of the Observable emits fewer events than the others, then the rest of the unpaired events are ignored.
Creates a new Observable from two observables, by emitting elements combined in pairs.
Creates a new Observable from two observables, by emitting elements combined in pairs. If one of the Observable emits fewer events than the other, then the rest of the unpaired events are ignored.
Given an observable sequence, it zips them together returning a new observable that generates sequences.