is Exception
来自 Proc::Async 的几个方法期望外部程序已生成(通过对其调用 .start),包括 say、write、print 和 close-stdin。如果在调用 .start 之前调用了其中一个方法,它们将抛出类型为 X::Proc::Async::MustBeStarted 的异常。
Proc::Async.new('echo', :w).say(42);CATCH ;# OUTPUT: «X::Proc::Async::MustBeStarted: Process must be started first before calling 'say'»
方法§
method 方法§
method method(X::Proc::Async::MustBeStarted --> Str)
返回在启动外部程序之前非法调用的方法的名称。