@@ -81,7 +81,7 @@ public void call(Subscriber<? super T> child) {
81
81
*/
82
82
continue ;
83
83
/*
84
- * Note: although technically corrent , concurrent disconnects can cause
84
+ * Note: although technically correct , concurrent disconnects can cause
85
85
* unexpected behavior such as child subscribers never receiving anything
86
86
* (unless connected again). An alternative approach, similar to
87
87
* PublishSubject would be to immediately terminate such child
@@ -309,7 +309,7 @@ boolean add(InnerProducer<T> producer) {
309
309
if (producers .compareAndSet (c , u )) {
310
310
return true ;
311
311
}
312
- // if failed, some other operation succeded (another add, remove or termination)
312
+ // if failed, some other operation succeeded (another add, remove or termination)
313
313
// so retry
314
314
}
315
315
}
@@ -398,7 +398,7 @@ boolean checkTerminated(Object term, boolean empty) {
398
398
ip .child .onCompleted ();
399
399
}
400
400
} finally {
401
- // we explicitely unsubscribe/disconnect from the upstream
401
+ // we explicitly unsubscribe/disconnect from the upstream
402
402
// after we sent out the terminal event to child subscribers
403
403
unsubscribe ();
404
404
}
@@ -418,7 +418,7 @@ boolean checkTerminated(Object term, boolean empty) {
418
418
ip .child .onError (t );
419
419
}
420
420
} finally {
421
- // we explicitely unsubscribe/disconnect from the upstream
421
+ // we explicitly unsubscribe/disconnect from the upstream
422
422
// after we sent out the terminal event to child subscribers
423
423
unsubscribe ();
424
424
}
@@ -637,7 +637,7 @@ static final class InnerProducer<T> extends AtomicLong implements Producer, Subs
637
637
/**
638
638
* Indicates this child has not yet requested any value. We pretend we don't
639
639
* see such child subscribers in dispatch() to allow other child subscribers who
640
- * have requested to make progress. In a concurrent subscription scennario ,
640
+ * have requested to make progress. In a concurrent subscription scenario ,
641
641
* one can't be sure when a subscription happens exactly so this virtual shift
642
642
* should not cause any problems.
643
643
*/
@@ -685,7 +685,7 @@ public void request(long n) {
685
685
}
686
686
// try setting the new request value
687
687
if (compareAndSet (r , u )) {
688
- // if successful, notify the parent dispacher this child can receive more
688
+ // if successful, notify the parent dispatcher this child can receive more
689
689
// elements
690
690
parent .dispatch ();
691
691
return ;
@@ -725,7 +725,7 @@ public long produced(long n) {
725
725
}
726
726
// try updating the request value
727
727
if (compareAndSet (r , u )) {
728
- // and return the udpated value
728
+ // and return the updated value
729
729
return u ;
730
730
}
731
731
// otherwise, some concurrent activity happened and we need to retry
0 commit comments