Swoole报错。
Uncaught Error: Call to undefined function Swoole\Coroutine\run() 怎么处理?
use function Swoole\Coroutine\run;
use function Swoole\Coroutine\go;
run(function() {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://httpbin.org/get');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
var_dump($result);
});