Course of Raku / Functional, concurrent, reactive, and web programming / Concurrent programming / Threads / Starting a thread

Quiz — Threads

What does Thread.start return?

0The value the block produced
1A Thread object representing the running work
0True if the thread started
0Nothing — it blocks until the thread finishes

Thread.start launches the block on a new thread and immediately returns a Thread object. The main program keeps running; you use that object later to wait for the thread to complete.

Course navigation

Starting a thread   |   Joining threads