louiscad
08/24/2018, 6:23 PMconsume
or consumeEach
.
BTW, this is getting me wondering if for
loop on a channel without consumption
should raise a warning…bj0
08/24/2018, 6:25 PMlouiscad
08/24/2018, 6:29 PMconsumeEach
, even in `actor`s, except when I need to use continue
or break
(but I still use consume
). A channel may need to be closed to not leak resources.
It's possible `actor`s don't need consumption of the internal ReceiveChannel
though. Can anyone confirm?bj0
08/24/2018, 6:32 PMconsume
is probably redundantlouiscad
08/24/2018, 6:33 PMbj0
08/24/2018, 6:34 PMfor
without consume
, though it has no way to break out of the for
except an external close, so that would be the same case I guess