@@ -726,7 +726,7 @@ public synchronized void onNext(V value) {
726
726
727
727
728
728
@ Override
729
- public void onComplete () {
729
+ public synchronized void onComplete () {
730
730
super .onComplete ();
731
731
assertResultSize (keys , completedValues );
732
732
@@ -735,7 +735,7 @@ public void onComplete() {
735
735
}
736
736
737
737
@ Override
738
- public void onError (Throwable ex ) {
738
+ public synchronized void onError (Throwable ex ) {
739
739
super .onError (ex );
740
740
ex = unwrapThrowable (ex );
741
741
// Set the remaining keys to the exception.
@@ -777,7 +777,7 @@ private DataLoaderMapEntrySubscriber(
777
777
778
778
779
779
@ Override
780
- public void onNext (Map .Entry <K , V > entry ) {
780
+ public synchronized void onNext (Map .Entry <K , V > entry ) {
781
781
super .onNext (entry );
782
782
K key = entry .getKey ();
783
783
V value = entry .getValue ();
@@ -791,7 +791,7 @@ public void onNext(Map.Entry<K, V> entry) {
791
791
}
792
792
793
793
@ Override
794
- public void onComplete () {
794
+ public synchronized void onComplete () {
795
795
super .onComplete ();
796
796
797
797
possiblyClearCacheEntriesOnExceptions (clearCacheKeys );
@@ -804,7 +804,7 @@ public void onComplete() {
804
804
}
805
805
806
806
@ Override
807
- public void onError (Throwable ex ) {
807
+ public synchronized void onError (Throwable ex ) {
808
808
super .onError (ex );
809
809
ex = unwrapThrowable (ex );
810
810
// Complete the futures for the remaining keys with the exception.
0 commit comments