Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Channels / Exercises

Receive a value

Problem

Create a channel, send the strings 'a' and 'b' into it, then receive and print the first value.

Example

The program prints:

a

Solution

See the solution

Course navigation

Quiz — Closing a channel   |   Solution: Receive a value