gotoOla
01/27/2020, 9:45 AMEsa
01/27/2020, 9:48 AMchannel.consumeEach {}
-says so quite explicitly in the name. Each element is consumed by its “processor”, preventing duplicate processing.
According to the library it’s currently experimental with planned graduation in 1.4, and it is apparently just an alias for the for (element in channel)
-syntax.diesieben07
01/27/2020, 9:52 AMconsumeEach
closes the channel after every element has been received or the receiver throws an exception. for-in
does not do that.gotoOla
01/27/2020, 10:07 AMribesg
01/27/2020, 10:17 AMBroadcastChannel
simple smile