async(function (){ // todo some thing }); } public function onException(\Throwable $throwable) { // 捕获 run 方法内所抛出的异常 } }