mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Update messy comment
This commit is contained in:
parent
4f3fc81081
commit
f024c7db9e
@ -290,9 +290,10 @@ class ObservablesTests {
|
||||
}
|
||||
|
||||
/**
|
||||
* A FlowSafeSubscriber that is not a leaf in a Subscribers structure, if it throws at onNext,
|
||||
* it will not call its onError, because in case it wraps a [PublishSubject] it will then call [PublishSubject.onError]
|
||||
* which will shut down all of the Subscribers under it.
|
||||
* A FlowSafeSubscriber that is NOT a leaf in a Subscribers structure, if it throws at onNext, it will not call its onError.
|
||||
*
|
||||
* The reason why it should not call its onError is: if it wraps a [PublishSubject], calling [FlowSafeSubscriber.onError]
|
||||
* will then call [PublishSubject.onError] which will shut down all the Subscribers under the [PublishSubject].
|
||||
*/
|
||||
@Test
|
||||
fun `FlowSafeSubject wrapped with a FlowSafeSubscriber will preserve the structure, if one of them is unsafe and it throws`() {
|
||||
|
Loading…
Reference in New Issue
Block a user