T M
class X::Proc::Async::AlreadyStarted
Error ReportCollection examples

Error due to calling start on an already started Proc::Async object

class X::Proc::Async::AlreadyStarted is Exception {}

When you call start twice on the same Proc::Async object, the second invocation will die with an X::Proc::Async::AlreadyStarted exception.

my $proc = Proc::Async.new("echo");
$proc.start;
$proc.start;
CATCH { default { put .^name''.Str } };
# OUTPUT: «X::Proc::Async::AlreadyStarted: Process has already been started␤»