File tree 1 file changed +9
-2
lines changed
src/main/java/rx/subscriptions
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 27
27
28
28
/**
29
29
* Subscription that represents a group of Subscriptions that are unsubscribed together.
30
+ * <p>
31
+ * All methods of this class are thread-safe.
30
32
*/
31
33
public final class CompositeSubscription implements Subscription {
32
34
@@ -98,8 +100,8 @@ public void remove(final Subscription s) {
98
100
99
101
/**
100
102
* Unsubscribes any subscriptions that are currently part of this {@code CompositeSubscription} and remove
101
- * them from the {@code CompositeSubscription} so that the {@code CompositeSubscription} is empty and in
102
- * an unoperative state .
103
+ * them from the {@code CompositeSubscription} so that the {@code CompositeSubscription} is empty and
104
+ * able to manage new subscriptions .
103
105
*/
104
106
public void clear () {
105
107
if (!unsubscribed ) {
@@ -116,6 +118,11 @@ public void clear() {
116
118
}
117
119
}
118
120
121
+ /**
122
+ * Unsubscribes itself and all inner subscriptions.
123
+ * <p>After call of this method, new {@code Subscription}s added to {@link CompositeSubscription}
124
+ * will be unsubscribed immediately.
125
+ */
119
126
@ Override
120
127
public void unsubscribe () {
121
128
if (!unsubscribed ) {
You can’t perform that action at this time.
0 commit comments