1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-04 10:38:30 +01:00
parallel/test/Worker/UnserializableResultTask.php
2018-10-23 22:10:12 -05:00

15 lines
301 B
PHP

<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\Environment;
use Amp\Parallel\Worker\Task;
class UnserializableResultTask implements Task
{
public function run(Environment $environment)
{
return function () {}; // Anonymous functions are not serializable.
}
}