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.cp.rx.AsyncSubject.create() -> cp.rx.AsyncSubject
AsyncSubject
.AsyncSubject
.cp.rx.AsyncSubject:onCompleted() -> nil
cp.rx.AsyncSubject:onError(message) -> nil
cp.rx.AsyncSubject:onNext(...) -> nil
AsyncSubject
.