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
takeUntil { … } would be almost the same as takeWhile { … }, but once the predicate evaluates to true, the last value (where the predicate evaluated to true) still passes through, and the upstream flow is then immediately cancelled.
The text was updated successfully, but these errors were encountered:
Thanks for pointing that, it's written very clearly why there's no such named operator. In the meantime I had found transforWhile, and it's not so bad. I think I'll use a semicolon to cut down 3 lines of code.
takeUntil { … }
would be almost the same astakeWhile { … }
, but once the predicate evaluates totrue
, the last value (where the predicate evaluated totrue
) still passes through, and the upstream flow is then immediately cancelled.The text was updated successfully, but these errors were encountered: