这里写问题具体描述
大佬们,求解答,用了swoole,响应正常,但是启动的协程没生效,主要代码如下,
use Swoole\Coroutine;
Coroutine::create(function () {
Coroutine::sleep(2);
echo "测试协程2222222222222222";
});
$sendData = [];
$sendData['code'] = 200;
$sendData['msg'] = "操作成功";
return json($sendData);