mirror of
https://github.com/danog/parallel.git
synced 2024-11-26 20:34:40 +01:00
23 lines
329 B
PHP
23 lines
329 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Sync;
|
|
|
|
final class ExitSuccess implements ExitResult
|
|
{
|
|
/** @var mixed */
|
|
private $result;
|
|
|
|
public function __construct($result)
|
|
{
|
|
$this->result = $result;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getResult()
|
|
{
|
|
return $this->result;
|
|
}
|
|
}
|