Performs the given action for each received element and cancels the channel after the execution of the block. If you need to iterate over the channel without consuming it, a regular
for loop should be used instead.
Subscribes to this BroadcastChannel and performs the specified action for each received element.
Note: This API will become obsolete in future updates with introduction of lazy asynchronous streams. See issue #254.