1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-04 02:27:55 +01:00
parallel/test/Worker/TestTask.php
2016-12-29 19:16:04 -06:00

18 lines
345 B
PHP

<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\{ Environment, Task };
class TestTask implements Task {
private $returnValue;
public function __construct($returnValue) {
$this->returnValue = $returnValue;
}
public function run(Environment $environment) {
return $this->returnValue;
}
}