mirror of
https://github.com/danog/parallel.git
synced 2025-01-06 04:38:21 +01:00
16 lines
273 B
PHP
16 lines
273 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();
|
|
}
|