docs » cp.rx.Observer
Observers are simple objects that receive values from Observables.
- Functions - API calls offered directly by the extension
- is
- Constructors - API calls which return an object, typically one that offers API methods
- create
- Methods - API calls which can only be made on an object returned by a constructor
- onCompleted
- onError
- onNext
| Signature | cp.rx.Observer.is(thing) -> boolean |
|---|---|
| Type | Function |
| Description | Tests if the thing is an Observer. |
| Parameters |
|
| Returns |
|
| Signature | cp.rx.Observer.create(onNext, onError, onCompleted) -> cp.rx.Observer |
|---|---|
| Type | Constructor |
| Description | Creates a new Observer. |
| Parameters |
|
| Returns |
|
| Signature | cp.rx.Observer:onCompleted() -> nil |
|---|---|
| Type | Method |
| Description | Notify the Observer that the sequence has completed and will produce no more values. |
| Parameters |
|
| Returns |
|
| Signature | cp.rx.Observer:onError(message) -> nil |
|---|---|
| Type | Method |
| Description | Notify the Observer that an error has occurred. |
| Parameters |
|
| Returns |
|
| Signature | cp.rx.Observer:onNext(...) -> nil |
|---|---|
| Type | Method |
| Description | Pushes zero or more values to the Observer. |
| Parameters |
|
| Returns |
|