## 注意事項
* 全局變量:協程使得原有的異步邏輯同步化,但是在協程的切換是隱式發生的,所以在協程切換的前后不能保證全局變量以及static變量的一致性。
* 與xdebug、xhprof、blackfire等zend擴展不兼容,例如不能使用xhprof對協程server進行性能分析采樣。
## 創建協程
~~~php
go(function () {
co::sleep(0.5);
echo "hello";
});
go("test");
go([$object, "method"]);
~~~