Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
/ forker Public archive

A simple interface for executing N things in parallel using forking and returning results.

License

Notifications You must be signed in to change notification settings

iFixit/forker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forker

Build Status

Forker presents a simple interfacing for forking in PHP.

If you need to do several tasks in parallel and collect their results, this is about as simple as it gets.

$things = array($thing1, $thing2);
$results = Forker::map($things, function ($index, $thing) {
   // Some expensive operation
   return calculateNewThing($thing);
});

About

A simple interface for executing N things in parallel using forking and returning results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages