parallel/lib/Worker/WorkerFactory.php
2016-07-20 09:23:50 -05:00

16 lines
281 B
PHP

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