Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Utilities\ParallelExecutor Class Reference

Helper class for maintenance scripts to run things in parallel. More...

Public Member Functions

 __construct (int $threads=1)
 
 runInParallel (callable $mainThread, callable $forkThread)
 

Detailed Description

Helper class for maintenance scripts to run things in parallel.

See also ForkContoller and https://phabricator.wikimedia.org/T201970.

Since
2020.11 @license GPL-2.0-or-later
Author
Niklas Laxström

Definition at line 17 of file ParallelExecutor.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Utilities\ParallelExecutor::__construct ( int $threads = 1)

Definition at line 23 of file ParallelExecutor.php.

Member Function Documentation

◆ runInParallel()

MediaWiki\Extension\Translate\Utilities\ParallelExecutor::runInParallel ( callable $mainThread,
callable $forkThread )

Definition at line 27 of file ParallelExecutor.php.


The documentation for this class was generated from the following file: