mirror of
https://github.com/amphp/parallel.git
synced 2025-07-24 23:11:52 +02:00
21 lines
356 B
PHP
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;
|
|
}
|
|
}
|