use strict; use warnings; use 5.010; use Coro; my @threads; for ( 1 .. 5 ) { push @threads, async { say "Hi!"; }; } for (@threads) { $_->join; }