I have app that opens stream where server pumps SSEs. I want the loop to run until desired value arrives, then leave the loop and continue. I\'ve looked at takeWhile
takeWhile