consumeEach() gives you all the objects emitted into a channel, one at a time, until the channel is closed. toList() also gives you all the objects emitted into a channel until the channel is closed... just all at once at the end, in the form of a List. This is helpful if you cannot do anything with the channel output until the channel is closed anyway.

You can learn more about this in:
Run Edit