mirror of
https://github.com/danog/parallel.git
synced 2024-12-14 01:57:25 +01:00
15 lines
310 B
PHP
15 lines
310 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Test\Worker\Fixtures;
|
|
|
|
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.
|
|
}
|
|
}
|