I have a good like this... straight from the documentation
my $proc = Proc::Async.new: ‘raku’, ‘script.raku’;
$proc.stdout.tap(-> $v { print "Output: $v" }, quit => { say 'caught exception ' ~ .^name });
$proc.stderr.tap(-> $v { print "Error: $v" });
my $promise = $proc.start;
Thread.start: { await $promise;}
sleep 30;
The script produces data on stdout and stderr. But it only prints one line .. Output:something
It stops printing information out... The script produces much more output.. What could be the problem?