Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 460 Bytes
Holy raptors, look at this code!
use Coroutines;
async {
# some asynchronous thread of execution
say 2;
yield; # yield back to main
say 4;
say 1;
schedule; # jump to async block
say 3;
schedule; # and again
say 5;
schedule; # this would do nothing, all coroutines are exhausted
say 6;
This will print 1, 2, 3, 4, 5, 6! In the correct order!
Order NOW for 1.99zł!
Jump to Line
Something went wrong with that request. Please try again.