Connects the underling observer to the upstream publisher.
Connects the underling observer to the upstream publisher.
This function should be idempotent. Calling it multiple times should have the same effect as calling it once.
Emit an item
Emit an item
Ends the stream with an error.
Ends the stream with an error.
Emit an item immediately to the underlying observer,
after previous pushNext()
events, but before any events emitted through
onNext
.
Emit an item immediately to the underlying observer,
after previous pushNext()
events, but before any events emitted through
onNext
.
Wraps a Subscriber into an implementation that abstains from emitting items until the call to
connect()
happens. Prior toconnect()
it's also a Channel into which you can enqueue events for delivery onceconnect()
happens, but before any items emitted byonNext
/onComplete
andonError
.Example:
Example of an observer ended in error: