- Setup proper exception handling (either real app or RxError JUnit rule)
- Subscribe to
waitForChildAttached when child is not and and won't be attached
- Do not unsubscribe
- Invoke
onDestroy of the node
- See
CancellationException
Single should not use takeUntil for disposing subscription, it triggers CancellationException because Single is forced to send either item or error.
waitForChildAttachedwhen child is not and and won't be attachedonDestroyof the nodeCancellationExceptionSingleshould not usetakeUntilfor disposing subscription, it triggersCancellationExceptionbecauseSingleis forced to send either item or error.