-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
rx.operators -> rx.internal.operators #1294
rx.operators -> rx.internal.operators #1294
Conversation
rx.operators -> rx.internal.operators
Would it make sense to create a similar rx.internal.schedulers package and move out some of the re-used code from |
I'm assuming that the meaning of internal for rxjava users will be that
I'm not using them directly myself but it strikes me that one of the advantages of the |
Those 2 bullet points are correct. The What type of composability are you concerned with? I can't think of any reason why users would need to use the
I'm open to that. Seems to make sense. |
Internal scheduler package is okay with me. We may move The SubjectSubscriptionManager as well and make static inner classes normal classes. In addition, I would consider moving Schedulers static methods directly into Scheduler, Subscribers static methods into Subscriber, perhaps even Subject.newAsync() company. This should match the way Java 8 added Stream.of() instead of Streams or StreamUtils. Unfortunately, without static interface methods, Observer and Subscription can't be unified this way. |
Ok, I'll make a pull request request that creates the rx.internal.schedulers package and move what I feel is appropriate there. Thinking of moving RxThreadFactory to rx.internal.util though, since it's not really Scheduler specific. |
My issue is that if I want to create my own public class MyOperator<T> implements Operator<T> {
@Override
public Subscriber<? super T> call(final Subscriber<? super T> subscriber) {
return operator1.call(operator2.call(operator3.call(subscriber)));
}
} If the The ability to be able to easily construct |
Move
rx.operators
torx.internal.operators
for clarity that these can change at any time and are not part of the public API.Discussed at #1270 (comment)