Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming
Supplies
This subpart is about reactive programming: writing code that responds to a stream of values as they arrive, rather than asking for them one by one. The central type is the supply.
A supply is a source of values over time — think of it as a stream you can subscribe to. You attach a piece of code to a supply, and that code runs once for each value the supply produces. This “values push to you” style is the opposite of pulling values out of a list, and it is exactly what you want for events, messages, and live data.
Topics in this section
Practice
Complete the 2 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.