takeWhileNotInvalid
Returns a flow of EventResults that is composed of the events emitted by the original Flow until an event of type StandardEventResult.Invalid is encountered.
Return
a flow of EventResults excluding the events of type StandardEventResult.Invalid
.