Task

Spawn a new process which can run simultaneously with, and independently of, the original parent process.




var x = 42;
{ x += 1; say x }.fork.wait;     # x is 43 here
say x;                           # but here is still 42