1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-11 08:39:48 +01:00
parallel/test/Worker/ConstantTask.php

13 lines
248 B
PHP
Raw Normal View History

2017-07-28 06:49:43 +02:00
<?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");
}
}