mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 09:37:57 +01:00
19 lines
365 B
PHP
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;
|
|
}
|
|
}
|