Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming
Junctions
This subpart turns to concurrent programming — doing more than one thing at a time. Raku has a rich, friendly toolkit for it: junctions, threads, promises, and channels. We start with the gentlest of them, the junction.
A junction is a single value that holds several values at once, joined by a logical relationship: any of them, all of them, one of them, or none of them. When you use a junction in a comparison, Raku tests every value behind it and combines the results. This often replaces a whole loop with a single expression — and, under the hood, the tests can run in parallel.
Topics in this section
Practice
Complete the quizzes that cover the contents of this section.
Exercises
This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.