flatten Nested Success
fun <Ok, EmbeddedError : AncestorError, OuterError : AncestorError, AncestorError> Outcome<Outcome<Ok, EmbeddedError>, OuterError>.flattenNestedSuccess(): Outcome<Ok, AncestorError>
Flattens a nested Outcome from inside the Success state into a single Outcome.
The returned error type is the nearest common AncestorError of EmbeddedError and OuterError.
Parameters
Ancestor Error
The nearest common ancestor of EmbeddedError and OuterError.