1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-11 16:49:51 +01:00
parallel/lib/Worker/WorkerFactory.php
2016-12-29 19:16:04 -06:00

16 lines
277 B
PHP

<?php
namespace Amp\Parallel\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;
}