1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-22 05:51:14 +01:00
parallel/src/Worker/WorkerFactory.php

16 lines
273 B
PHP
Raw Normal View History

<?php
namespace Icicle\Concurrent\Worker;
/**
2015-12-04 23:50:32 -06:00
* Interface for factories used to create new workers.
*/
2015-12-04 23:50:32 -06:00
interface WorkerFactory
{
/**
2015-12-04 23:50:32 -06:00
* Creates a new worker instance.
*
2015-12-04 23:50:32 -06:00
* @return Worker The newly created worker.
*/
2015-12-04 23:50:32 -06:00
public function create();
}