php-multithreading:php 多线程

时间:2021-06-28 16:58:13
【文件属性】:
文件名称:php-multithreading:php 多线程
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-28 16:58:13
PHP php 5.3+ 的多线程类 php 5.3+ 的多线程类 安装 安装此扩展的首选方法是通过 。 要么跑 php composer.phar require --prefer-dist grandmasterx/yii2-multithreading "*" 或添加 "grandmasterx/yii2-multithreading": "*" 到composer.json文件的 require 部分。 用法 安装扩展后,只需通过以下方式在代码中使用它: $ threads = new Threads ; $ threads -> newThread ( dirname (__FILE__). '/file.php' , array ()); while ( false !== ( $ result = $ threads -> iteration ())) { if (
【文件预览】:
php-multithreading-master
----README.md(841B)
----LICENSE(1KB)
----composer.json(621B)
----Threads.php(3KB)

网友评论