You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, flatMapSingle returns Single and signals NoSuchElementException if the source Maybe is empty. flatMapSingleElement remains Maybe.
I'd consider renaming flatMapSingle to flatMapSingleOrError and flatMapSingleElement to flatMapSingle as I think a default Maybe -> Maybe transformer should better match the other such transformers.
Alternatively, drop flatMapSingle and rename flatMapSingleElement to flatMapSingle so that the original behavior could be achieved via flatMapSingle.toSingle()).
The text was updated successfully, but these errors were encountered:
Personally I'm in favor of dropping the old flatMapSingle and renaming flatMapSingleElement, because I found the behavior of the old flatMapSingle surprising at first, and using toSingle().flatMap() is more readable.
Currently,
flatMapSingle
returnsSingle
and signalsNoSuchElementException
if the sourceMaybe
is empty.flatMapSingleElement
remainsMaybe
.I'd consider renaming
flatMapSingle
toflatMapSingleOrError
andflatMapSingleElement
toflatMapSingle
as I think a defaultMaybe
->Maybe
transformer should better match the other such transformers.Alternatively, drop
flatMapSingle
and renameflatMapSingleElement
toflatMapSingle
so that the original behavior could be achieved viaflatMapSingle.toSingle())
.The text was updated successfully, but these errors were encountered: