1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/lib/Worker/WorkerFactory.php

16 lines
277 B
PHP
Raw Normal View History

2016-12-30 02:16:04 +01:00
<?php
2016-08-18 18:04:48 +02:00
2016-08-23 23:47:40 +02:00
namespace Amp\Parallel\Worker;
/**
2015-12-05 06:50:32 +01:00
* Interface for factories used to create new workers.
*/
2016-08-18 18:04:48 +02:00
interface WorkerFactory {
/**
2015-12-05 06:50:32 +01:00
* Creates a new worker instance.
*
2015-12-05 06:50:32 +01:00
* @return Worker The newly created worker.
*/
2016-01-23 07:00:56 +01:00
public function create(): Worker;
}