Skip to content

qsun/php_parallel_tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Parallel Tasks

perform multiple tasks simultaneously

Code Example

/* create task manager, with 4 running slots */
$manager = new TaskManager(4);

/* create 10 tasks */
$nTasks = 10;
while ($nTasks > 0) {
    $manager->addTask(new SampleTask);
    $nTasks--;
}

/* run! */
$manager->tickForever();

About

perform multiple tasks simultaneously

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages