-
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
Subject.toSerialized() #1748
Comments
It is sad that Java has no extensions methods. I vote to keep things as is for now. |
Moving to 1.0 as this is easy to add. |
I agree with @headinthebox that |
I can do that on an
Yes it can check that is in an instance of the already wrapped Subject and not wrap again. |
The signature could be: public SerializedSubject<T, R> toSerialized(); This way it is clear what is being returned. |
If using this one, the case mentioned by @samuelgruetter cannot work.
|
We could make an abstract |
Sounds good. |
Adds toSerialized as discussed in ReactiveX#1748
Adds toSerialized as discussed in ReactiveX#1748
I added Even if we were to make Also, there are really only 3 ways to approach this that I'm aware of:
Thus, there is really only one approach we want for this, and that is the |
Should we add an instance method such as:
Currently the way to get a
SerializedSubject
is via the constructor:Related to addition of
SerializedSubject
in #1744The text was updated successfully, but these errors were encountered: