You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to have serialsubscription inherit from multipleassignmentsubscription. The difference is that the latter unsubscribes when swapping in a new subscription. I think that would show the intent better and make the code more maintanable.
In fact, I think MultipleAssignmentSubscription itself can inherit from BooleanSubscription.
I don't know. I can create many PRs for all kinds of variants, but at the end @benjchristensen has to decide; I'd rather avoid look-and-feel development.
SerialSubscription has
private static final Subscription UNSUBSCRIBED = new Subscription() {
SingleAssignmentSubscription has
private static final Subscription SENTINEL = new Subscription() {
for the same purpose.
Also, these use lockfree implementations, the other subscriptions use locks.
Perhaps someone can go over all subscriptions and implement them in the same style and using the same naming conventions.
The text was updated successfully, but these errors were encountered: