Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / Live and on-demand supplies / Exercises
Sum a live feed
Problem
Create a live supply with a Supplier. Tap it so that
every emitted value is added to a running total. Emit 10,
20, and 30, then print the total.
Example
The program prints:
60