mirror of
https://github.com/danog/parallel.git
synced 2024-12-13 17:47:32 +01:00
13 lines
248 B
PHP
13 lines
248 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Test\Worker;
|
|
|
|
use Amp\Parallel\Worker\Environment;
|
|
use Amp\Parallel\Worker\Task;
|
|
|
|
class ConstantTask implements Task {
|
|
public function run(Environment $environment) {
|
|
return \defined("AMP_WORKER");
|
|
}
|
|
}
|