package observables
Contains special Observables.
In Scala, this package only contains rx.lang.scala.observables.BlockingObservable.
In the corresponding Java package rx.observables, there is also a
GroupedObservable and a ConnectableObservable, but these are not needed
in Scala, because we use a pair (key, observable) instead of GroupedObservable
and a pair (startFunction, observable) instead of ConnectableObservable.
- Alphabetic
- By Inheritance
- observables
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type AsyncOnSubscribe[S, +T] = observables.AsyncOnSubscribe[S, _ <: T]
-
final
class
BlockingObservable
[+T] extends AnyVal
An Observable that provides blocking operators.
An Observable that provides blocking operators.
You can obtain a BlockingObservable from an Observable using rx.lang.scala.Observable.toBlocking
-
class
ConnectableObservable
[+T] extends Observable[T]
A ConnectableObservable resembles an ordinary Observable, except that it does not begin emitting items when it is subscribed to, but only when its connect method is called.
A ConnectableObservable resembles an ordinary Observable, except that it does not begin emitting items when it is subscribed to, but only when its connect method is called. In this way you can wait for all intended Subscribers to subscribe to the Observable before the Observable begins emitting items.

-
final
class
ErrorDelayingObservable
[+T] extends AnyVal
EXPERIMENTAL An Observable that provides operators which delay errors when composing multiple Observables.
EXPERIMENTAL An Observable that provides operators which delay errors when composing multiple Observables.
- Annotations
- @Experimental()
- type SyncOnSubscribe[S, +T] = observables.SyncOnSubscribe[S, _ <: T]
Value Members
-
object
AsyncOnSubscribe
EXPERIMENTAL A utility class to create Observables that start acting when subscribed to and responds correctly to back pressure requests from Subscribers.
EXPERIMENTAL A utility class to create Observables that start acting when subscribed to and responds correctly to back pressure requests from Subscribers.
Semantics:
generatoris called to provide an initial state on each new subscriptionnextis called with the last state and arequestedamount of items to provide a new state and anObservablethat (potentially asynchronously) emits up torequesteditems.onUnsubscribeis called with the state provided by the lastnextcall when the Subscriber unsubscribes
-
object
SyncOnSubscribe
EXPERIMENTAL A utility class to create Observables that start acting when subscribed to and responds correctly to back pressure requests from Subscribers.
EXPERIMENTAL A utility class to create Observables that start acting when subscribed to and responds correctly to back pressure requests from Subscribers.
Semantics:
generatoris called to provide an initial state on each new subscriptionnextis called with the last state to provide a data item and a new state for the nextnextcallonUnsubscribeis called with the state provided by the lastnextcall when the observer unsubscribes