<?php
require_once __DIR__ . '/vendor/autoload.php';
$callback = function($arg1) {
echo getmypid() . ": " . $arg1 . "\n";
};
$callbackQueue = new Workman\CallbackQueue($callback);
for ($c = 0; $c < 100000; $c++) {
$callbackQueue->push([$c]);
}
$callbackQueue->work(7);
-
Notifications
You must be signed in to change notification settings - Fork 15
jimbojsb/workman
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP Process Forking & Daemonizing Library
Resources
Stars
Watchers
Forks
Packages 0
No packages published