1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/test/Worker/TestTask.php
2017-05-18 09:51:31 +02:00

19 lines
365 B
PHP

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