Fork me on GitHub
#core-async
<
2022-08-18
>
Ben Sless15:08:02

Did anyone figure out an async version of iteration? I found @hiredman's gist but I'm not quite sure it's usable

Alex Miller (Clojure team)15:08:53

we have one, not sure if it ever made it into a ticket

Ben Sless15:08:52

Thanks! Not sure if I'm missing something here, but won't step get called at least once unprompted?

Ben Sless15:08:45

I could pass an empty channel as initk and take from it in step, closing it from the outside. Slightly round about but I can't think of another way. Am I missing something?

Ben Sless14:08:01

I think there might be a bug, maybe in the compiler When I unrolled the and to three nested whens I got correct behavior for somef identity and ret false

Alex Miller (Clojure team)15:08:30

eventually we'll get around to adding that

Alex Miller (Clojure team)15:08:23

it may need a pass to catch up to where the clojure core one ended up in docstring/naming, don't remember

ghadi15:08:08

the impl may need some (re-)work to make the runahead more predictable

Ben Sless15:08:05

What makes it unpredictable?

Ben Sless16:08:34

Just saw the arbitrary 100 buffer size