Fork me on GitHub
#core-async
<
2018-12-09
>
idiomancy01:12:22

how does one use a response channel that closes when some condition occurs to control coordination?

idiomancy01:12:44

for instance, the onto-chan returns something that closes when it has finished putting things on the channel

idiomancy01:12:08

how do I say "wait until you've put everything on the channel, then recur"

idiomancy01:12:46

the idea is I want to put multiple collections into a channel one at a time

zlrth01:12:07

i’m also interested in the answer

idiomancy01:12:53

hmm, actually. I see that apparently channels return nil when closed

idiomancy01:12:14

so maybe you just do a blocking take?

idiomancy01:12:26

incidentally, that piece of information is tucked in the documentation for the close! function

idiomancy01:12:32

@mfm yeah that seems to work