1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/lib/Worker/WorkerFactory.php
Aaron Piotrowski da84a772cf Port to Amp
2016-08-18 11:04:48 -05:00

16 lines
279 B
PHP

<?php
namespace Amp\Concurrent\Worker;
/**
* Interface for factories used to create new workers.
*/
interface WorkerFactory {
/**
* Creates a new worker instance.
*
* @return Worker The newly created worker.
*/
public function create(): Worker;
}