$p = new \WorkBunny\Process\Runtime();
$p->wait(function(\WorkBunny\Process\Runtime $parent, int $status){
# 子進(jìn)程正常退出則會(huì)調(diào)用該方法,被調(diào)用次數(shù)是正常退出的子進(jìn)程數(shù)量
},function(\WorkBunny\Process\Runtime $parent, $status){`php
$p = new \WorkBunny\Process\Runtime();
$p->wait(function(\WorkBunny\Process\Runtime $runtime, $status){
# 子Runtime正常退出時(shí)
}, function(\WorkBunny\Process\Runtime $runtime, $status){
# 子Runtime異常退出時(shí)