Course of Raku / Functional, concurrent, reactive, and web programming / Reactive programming / await / Exercises

Await a supply

Problem

Use a react block to collect the values of a supply built from the strings 'a', 'b', 'c' into an array. After the react block finishes (which waits for the stream to complete), print the collected values joined with dashes.

Example

The program prints:

a-b-c

Solution

See the solution

Course navigation

Solution: Await a promise   |   Solution: Await a supply