parallel/lib/Worker/WorkerFactory.php

16 lines
277 B
PHP
Raw Normal View History

2016-12-29 19:16:04 -06:00
<?php
2016-08-18 11:04:48 -05:00
2016-08-23 16:47:40 -05:00
namespace Amp\Parallel\Worker;
/**
2015-12-04 23:50:32 -06:00
* Interface for factories used to create new workers.
*/
2016-08-18 11:04:48 -05: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.
*/
2016-01-23 00:00:56 -06:00
public function create(): Worker;
}