# | Line 39 | Line 39 | package java.util.concurrent; | |
---|---|---|
39 | * private boolean subscribed; // true after first subscribe | |
40 | * public synchronized void subscribe(Subscriber<? super Boolean> subscriber) { | |
41 | * if (subscribed) | |
42 | < | * subscriber.onError(new IllegalStateException()); // only one allowed |
42 | > | * subscriber.onError(new IllegalStateException()); // only one allowed |
43 | * else { | |
44 | * subscribed = true; | |
45 | * subscriber.onSubscribe(new OneShotSubscription(subscriber, executor)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |