Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
14
Task/Events/Perl-6/events.pl6
Normal file
14
Task/Events/Perl-6/events.pl6
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
note now, " program start";
|
||||
my $event = Channel.new;
|
||||
|
||||
my $todo = start {
|
||||
note now, " task start";
|
||||
$event.receive;
|
||||
note now, " event reset by task";
|
||||
}
|
||||
|
||||
note now, " program sleeping";
|
||||
sleep 1;
|
||||
note now, " program signaling event";
|
||||
$event.send(0);
|
||||
await $todo;
|
||||
Loading…
Add table
Add a link
Reference in a new issue