I've moved this question to stackoverflow
https://stackoverflow.com/questions/50573586/perl6-an-operation-first-awaited
More comments inline below.
On Tue, 29 May 2018 at 01:40, Brad Gilbert wrote:
> .
> > An operation first awaited:
> > in sub MAIN at ./traverse-
(prints) the files. But I'm getting this "An operation first
> awaited:"
> error.
>
> I've read the traps page about this error several times, but still can't
> make sense of it. Can some explain what's going on here?
>
> The directory contents:
> $ ls
> a b c traverse-di
T""his simple program creates a thread to read a directory with dir()
and place the files on a channel. $N worker threads read that channel
and "process" (prints) the files. But I'm getting this "An operation
first awaited:"
error.
I've read the traps page