-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I have followed your document. Here is getting error message. Could you pleae check.
PHP Fatal Error – yii\base\ErrorException
Class 'php\multithreading\Exception' not found
Code:
$start = microtime(true);
require(__DIR__ . '/../../vendor/grandmasterx/yii2-multithreading/Threads.php');
$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;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels