Helper class for maintenance scripts to run things in parallel. More...
Public Member Functions | |
| __construct (private readonly 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 | ( | private readonly int | $threads = 1 | ) |
Definition at line 21 of file ParallelExecutor.php.
| MediaWiki\Extension\Translate\Utilities\ParallelExecutor::runInParallel | ( | callable | $mainThread, |
| callable | $forkThread ) |
Definition at line 26 of file ParallelExecutor.php.