Open NiteshKant opened 9 years ago
Isn't that what the Subscription.cancel()
method is for?
Isn't that what the Subscription.cancel() method is for?
Yes. Although, the case in point here is to support a usecase of ignoreContent
where in the receiver is not interested in the incoming content at all and hence will never subscribe.
Currently a
Connection
is aPublisher<T>
which essentially means that an unsubscription from this connection would result in a close.The issue with this approach is that for consumers that do not want to consume the content of the connection have no easy way to close the connection as typically they will not subscribe to the content.