p
rxscalajs
package rxscalajs
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- class ConnectableObservable [+T] extends AnyRef
-
class
Notification
[T] extends Object
- Annotations
- @RawJSType() @native() @JSImport( "rxjs/Rx" , "Notification" , "Rx.Notification" )
-
class
Observable
[+T] extends AnyRef
The Observable interface that implements the Reactive Pattern.
-
trait
Observer
[-T] extends AnyRef
Provides a mechanism for receiving push-based notifications.
Provides a mechanism for receiving push-based notifications.
After an Observer calls an rxscalajs.Observable's
subscribe
method, the Observable calls the Observer'sonNext
method to provide notifications. A well-behaved Observable will call an Observer'sonCompleted
oronError
methods exactly once. -
trait
Scheduler
extends Object
- Annotations
- @RawJSType() @native()
-
class
Subject
[T] extends Observable[T] with Observer[T]
A Subject is an Observable and an Observer at the same time.
Value Members
-
object
Notification
extends Object
- Annotations
- @native() @JSImport( "rxjs/Rx" , "Notification" , "Rx.Notification" )
- object Observable extends ObservableInstances
-
object
Scheduler
extends Object
- Annotations
- @native() @JSImport( "rxjs/Rx" , "Scheduler" , "Rx.Scheduler" )
-
object
Subject
Subject that, once an
Observer
has subscribed, emits all subsequently observed items to the subscriber.Subject that, once an
Observer
has subscribed, emits all subsequently observed items to the subscriber.val subject = Subject[String]() // observer1 will receive all onNext and onCompleted events subject.subscribe(observer1) subject.onNext("one") subject.onNext("two") // observer2 will only receive "three" and onCompleted subject.subscribe(observer2) subject.onNext("three") subject.onCompleted()
Example: