Files
parallel/test/Worker/TestTask.php
Aaron Piotrowski da84a772cf Port to Amp
2016-08-18 11:04:48 -05:00

21 lines
356 B
PHP

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