1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/test/Worker/Fixtures/ConstantTask.php

15 lines
261 B
PHP
Raw Normal View History

2017-07-28 06:49:43 +02:00
<?php
namespace Amp\Parallel\Test\Worker\Fixtures;
2017-07-28 06:49:43 +02:00
use Amp\Parallel\Worker\Environment;
use Amp\Parallel\Worker\Task;
2018-10-07 16:50:45 +02:00
class ConstantTask implements Task
{
public function run(Environment $environment)
{
2017-07-28 06:49:43 +02:00
return \defined("AMP_WORKER");
}
}