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: promote UnicastSubject to be a standard+experimental Subject #3936

Merged
merged 1 commit into from
Jun 1, 2016

Conversation

akarnokd
Copy link
Member

Plus, the unsubscribe indirection has been inlined, making State implement Subscription directly (instead of Action0 + Subscriptions.create).

@@ -250,7 +251,7 @@ public void request(long n) {
@Override
public void call(Subscriber<? super T> subscriber) {
if (this.subscriber.compareAndSet(null, subscriber)) {
subscriber.add(Subscriptions.create(this));
subscriber.add(this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 👍

@@ -35,6 +35,7 @@
*
* @param <T> the input and output value type
*/
@Experimental
Copy link
Contributor

Choose a reason for hiding this comment

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

We can't promote it for public usage without tests!

Copy link
Member Author

Choose a reason for hiding this comment

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

It is tested through window operators and there is BufferUntilSubscriberTest.

@zsxwing
Copy link
Member

zsxwing commented Jun 1, 2016

👍

@akarnokd akarnokd merged commit 271c83b into ReactiveX:1.x Jun 1, 2016
@akarnokd akarnokd deleted the UnicastSubjectPromote branch June 1, 2016 21:54
@stevegury
Copy link
Member

👍

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.

None yet

5 participants