[TOC] ## 概述 必须在非全局下使用,否则会报错 ``` public function index(){ // 异步执行 TaskManager::getInstance()->async(function (){ sleep(5); var_dump('rrrrr'); }); $this->writeJson(200,"task"); } ```