1. 首页
  2. 数据库
  3. 其它
  4. react adapter:使任何ReactPHP库与Amp兼容的适配器 源码

react adapter:使任何ReactPHP库与Amp兼容的适配器 源码

上传者: 2021-02-01 07:42:49上传 ZIP文件 6KB 热度 4次
React适配器 amphp/react-adapter使任何库与兼容。 安装 composer require amphp/react-adapter 用法 在ReactPHP库需要LoopInterface实例的LoopInterface ,只需传递ReactAdapter::get()即可在Amp的事件循环上运行ReactPHP库。 <?php require 'vendor/autoload.php' ; use Amp \ Loop ; use Amp \ ReactAdapter \ ReactAdapter ; Loop :: run ( function () {
下载地址
用户评论