Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectableObservable autoConnect operator #3023

Merged
merged 1 commit into from
Jul 14, 2015

Conversation

akarnokd
Copy link
Member

There is a need for auto-connection capability for an arbitrary ConnectableObservable similar to how it is possible now to use cache() as an auto-connected unbounded replay.

The new autoConnect() method let's specify the number of Subscribers required for the real connection to happen and also offers the ability to receive the connection Subscription.

I've also updated the parameter name of cache(int) to reflect it is a capacity hint and not a bound.

@benjchristensen
Copy link
Member

autoConnect is a nice additional feature. Like refCount except it never disconnects. I particularly like the overload where it auto connects when the specific number of subscribers arrive.

benjchristensen added a commit that referenced this pull request Jul 14, 2015
ConnectableObservable autoConnect operator
@benjchristensen benjchristensen merged commit 44945dc into ReactiveX:1.x Jul 14, 2015
@akarnokd akarnokd deleted the AutoConnect branch July 14, 2015 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants