用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
[TOC] ## 概述 ``` go(function (){ $csp = new \EasySwoole\Component\Csp(); $csp->add('t1',function (){ \co::sleep(0.1); return 't1 result'; }); $csp->add('t2',function (){ \co::sleep(0.1); return 't2 result'; }); var_export($csp->exec(5)); /** * array ( 't1' => 't1 result', 't2' => 't2 result', ) */ }); ```