File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
rxjava-core/src/main/java/rx/subscriptions Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ public synchronized boolean isUnsubscribed() {
46
46
return unsubscribed ;
47
47
}
48
48
49
+ /**
50
+ * Adds a new {@link Subscription} to this {@code ChainedSubscription} if the {@code ChainedSubscription} is
51
+ * not yet unsubscribed. If the {@code ChainedSubscription} <em>is</em> unsubscribed, {@code add} will
52
+ * indicate this by explicitly unsubscribing the new {@code Subscription} as well.
53
+ *
54
+ * @param s
55
+ * the {@link Subscription} to add
56
+ */
49
57
public void add (final Subscription s ) {
50
58
Subscription unsubscribe = null ;
51
59
synchronized (this ) {
@@ -76,6 +84,10 @@ public void unsubscribe() {
76
84
unsubscribeFromAll (subscriptions );
77
85
}
78
86
87
+ /**
88
+ * @warn javadoc missing
89
+ * @param subscriptions
90
+ */
79
91
private static void unsubscribeFromAll (Collection <Subscription > subscriptions ) {
80
92
if (subscriptions == null ) {
81
93
return ;
You can’t perform that action at this time.
0 commit comments