mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
17 lines
277 B
PHP
17 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;
|
|
}
|