在 Sep 8, 2006 10:33 PM 時,Michael Snoyman 寫到:

Thanks Audrey. I actually found that after writing that post. What I had wanted to do was write a threaded server, implemented in Perl 6 only (ie, including Perl 6 regexs). I got that working almost entirely, when I couldn't find any thread implementation. I tried using fork() to get a same effect, but it seems that fork also isn't available. Was I missing something, or are these just features that I need to wait for?

async{} creates a thread:

    my $thr = async { ... };

You can use the usual .join, .detach, .yield methods on it.

Thanks,
Audrey


Reply via email to