3.x: Reenable XFlatMapTest.maybeSingle, add missing Single operators by akarnokd · Pull Request #6893 · ReactiveX/RxJava (original) (raw)

Reenable the XFlatMapTest.maybeSingle and make sure all flatMap variants behave the same when the flow is cancelled/disposed while the mapper function is executing, thus the returned inner source doesn't get subscribed to at all.

Resolves #6892

While adding the extra tests, I noticed two flatMap variant is missing from Single:

image
image

Lastly, the same combiner variant for Maybe received a marble diagram too:

image

Related #5806