Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Channels / Exercises
Drain a channel
Problem
Create a channel, send the strings 'a' and
'b', close it, then collect all the values with
.list and print them joined by commas.
Example
The program prints:
a,b