Newsgroups: perl.perl6.language
From: austin_hasti...@yahoo.com (Austin Hastings)
Date: Thu, 29 May 2003 11:31:00 -0700 (PDT)
Subject: Re: Threads and Progress Monitors
--- Dave Whipp <d...@whipp.name> wrote: > OK, we've beaten the producer/consumer thread/coro model to death. sub slow_func_imp { > Here's a > different use of threads: how simple can we make this in P6: > sub slow_func > I think this would work under Austin's A17; but it feels a bit > perhaps: > { > The thing is, that "wait 60" probably can't work -- replace C<60> my $pct_done = 0; ... yield $pct_done++; # Per my recent message ... } sub slow_func { my $tid := thread &slow_func_imp; status_monitor($tid.resume) }
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||