AsyncSubject
AsyncSubjects
are subjects that produce either no values or a single value. If multiple values are produced via onNext
, only the last one is used. If onError
is called, then no value is produced and onError
is called on any subscribed Observers. If an Observer subscribes and the AsyncSubject
has already terminated, the Observer
will immediately receive the value or the error.- Constructors - API calls which return an object, typically one that offers API methods
- Methods - API calls which can only be made on an object returned by a constructor
Signature | cp.rx.AsyncSubject.create() -> cp.rx.AsyncSubject |
Type | Constructor |
Description | Creates a new AsyncSubject . |
Returns |
|
Signature | cp.rx.AsyncSubject:onCompleted() -> nil |
Type | Method |
Description |
Signature | cp.rx.AsyncSubject:onError(message) -> nil |
Type | Method |
Description | |
Parameters |
|
Signature | cp.rx.AsyncSubject:onNext(...) -> nil |
Type | Method |
Description | Pushes zero or more values to the AsyncSubject . |
Parameters |
|
Last modified 1yr ago