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

Kept or broken

Problem

A promise that completes successfully is said to be kept. Start a promise, await it, and then print its .status.

Example

The program prints:

Kept

Solution

See the solution

Course navigation

Solution: Await many   |   Solution: Kept or broken