mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 17:52:14 +01:00
16 lines
306 B
PHP
16 lines
306 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace Amp\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;
|
|
}
|