Breaking Change: Pipes enumerate #1183
louthy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There Pipes functions:
enumerate
,enumerate2
,observe
,observe2
have been deleted and replaced withyieldAll
(that acceptsIEnumerable
,IAsyncEnumerable
, orIObservable
).The previous implementation had mixed behaviours, some that always yielded the values, some that turned the remainder of the pipes expression into a enumeration. This wasn't entirely clear from the name and so now there is a single set of
yieldAll
functions that alwaysyield
all the values in the collection downstream.The behaviour of the always yield
enumerate
functions was also buggy, and didn't result in the remainder of aProducer
orPipe
being invoked after theyield
. :In the example above,
"after"
would never be called, this is now fixed.There is also a new
&
operator overload for Pipes which performs the operators in series. This has the effect of concatenating Producers (for example), but will work forPipe
,Consumer
,Client
, andServer
.There's still work to do on
repeat
, but this was quite a difficult change, so I'll leave that for now.Other fixes:
This discussion was created from the release Breaking Change: Pipes enumerate.
Beta Was this translation helpful? Give feedback.
All reactions