Fork me on GitHub
#core-async
<
2017-07-31
>
ajmagnifico17:07:29

Question: When we create a channel with a transducer, who is actually doing the computation specified by the transducer? The thread that PUT to the channel? Or the thread that TAKES from the channel?

hiredman17:07:24

the simplest answer is the producer

hiredman17:07:11

the producer's logical thread (because if it is a go block it may actually get suspended and restarted elsewhere if the channel is full)

ajmagnifico17:07:06

Okay, so it sounds like you’re saying that when I put a value to a channel, that operation takes care of processing the xform. And there isn’t some magical thread associated with a channel that takes care of this kind of stuff?

ajmagnifico18:07:47

okay, thank you!