Helper class for maintenance scripts to run things in parallel. More...
Public Member Functions | |
__construct (int $threads=1) | |
runInParallel (callable $mainThread, callable $forkThread) | |
Helper class for maintenance scripts to run things in parallel.
See also ForkContoller and https://phabricator.wikimedia.org/T201970.
Definition at line 17 of file ParallelExecutor.php.
MediaWiki\Extension\Translate\Utilities\ParallelExecutor::__construct | ( | int | $threads = 1 | ) |
Definition at line 23 of file ParallelExecutor.php.
MediaWiki\Extension\Translate\Utilities\ParallelExecutor::runInParallel | ( | callable | $mainThread, |
callable | $forkThread ) |
Definition at line 27 of file ParallelExecutor.php.