【文件属性】:
文件名称:future-process:PHP 的异步流程执行
文件大小:19KB
文件格式:ZIP
更新时间:2021-06-06 02:38:33
PHP
未来进程
介绍
Future Process 是面向对象的proc_open ,具有异步 API 和命令自动排队。
用法
// we use Shell to start new processes
$ shell = new \ FutureProcess \ Shell ;
// run a maximum of 5 concurrent processes - additional ones will be queued
$ shell -> setProcessLimit ( 5 );
// let's download this package's license file from GitHub using wget
$ url = 'https://raw.githubusercontent.com/joshdifabio/future-process/master/LIC
【文件预览】:
future-process-master
----src()
--------FutureValue.php(2KB)
--------FutureProcess.php(8KB)
--------Shell.php(5KB)
--------FutureResult.php(2KB)
--------TimeoutException.php(157B)
--------Pipes.php(6KB)
----phpunit.xml.dist(474B)
----examples()
--------blocking-download.php(461B)
--------non-blocking-download.php(720B)
----.travis.yml(513B)
----LICENSE(1KB)
----composer.lock(36KB)
----README.md(2KB)
----tests()
--------bootstrap.php(113B)
--------IntegrationTest.php(19KB)
----.gitignore(23B)
----CHANGELOG.md(1KB)
----composer.json(804B)