dev-master
9999999-devMultithreading class for php 5.3+
MIT
The Requires
by GrandMasterX
extension yii2
Multithreading class for php 5.3+
Multithreading class for php 5.3+, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist grandmasterx/yii2-multithreading "*"
or add, (*4)
"grandmasterx/yii2-multithreading": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
$threads = new Threads; $threads->newThread(dirname(__FILE__).'/file.php', array()); while (false !== ($result = $threads->iteration())) { if (!empty($result)) { echo $result."\r\n"; } } echo (date("H:i:s")); $end = microtime(true); echo "Execution time ".round($end - $start, 2)."\r\n"; die;
Multithreading class for php 5.3+
MIT
extension yii2