takeWhileNotError

Returns a new Flow containing elements from the original flow until the first occurrence of an error event.

Return

a new flow containing elements until the first error event.