We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28d4c7 commit ba38f73Copy full SHA for ba38f73
tck/src/test/java/org/reactivestreams/tck/PublisherVerificationTest.java
@@ -787,13 +787,7 @@ public void request(long n) {
787
public void cancel() {
788
canceled.set(true);
789
subscriber = null;
790
- // COR list, so its ok to remove demand that way
791
- for (CancelableSubscription subscription : subscriptions) {
792
- // reference equality. It's ok
793
- if (subscription == this) {
794
- subscriptions.remove(subscription);
795
- }
796
+ subscriptions.remove(this);
797
}
798
799
0 commit comments