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

Await many

Problem

Start three promises that produce 2, 3, and 4. Await all of them and print the product of their results.

Example

The program prints:

24

Solution

See the solution

Course navigation

Solution: Chain a promise   |   Solution: Await many