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

1.x: Single.using() #3752

Merged
merged 1 commit into from
Mar 14, 2016
Merged

1.x: Single.using() #3752

merged 1 commit into from
Mar 14, 2016

Conversation

akarnokd
Copy link
Member

This PR adds the factory method using() +1 overload to Single as requested in #3732.

For convenience, I've also added Single.subscribe(Observer).


@Test
public void withSubscribingTwice() {
performTestUsingWithSubscribingTwice(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: probably worth to create constants with meaningful name to use them instead of true/false, something like:

@Test
public void withSubscribingTwice() {
  performTestUsingWithSubscribingTwice(DONT_DISPOSE_EAGERLY);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe next time. I'm already removing test prefixes for you.

@artem-zinnatullin
Copy link
Contributor

👍

@stevegury
Copy link
Member

LGTM
👍

akarnokd added a commit that referenced this pull request Mar 14, 2016
@akarnokd akarnokd merged commit ad73819 into ReactiveX:1.x Mar 14, 2016
@akarnokd akarnokd deleted the SingleUsing1x branch March 14, 2016 16:40
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.

3 participants