mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
26 lines
399 B
PHP
26 lines
399 B
PHP
<?php
|
|
|
|
namespace Amp\Awaitable\Internal;
|
|
|
|
class CoroutineResult
|
|
{
|
|
/**
|
|
* @var mixed
|
|
*/
|
|
private $value;
|
|
|
|
/**
|
|
* @param mixed $value Coroutine return value.
|
|
*/
|
|
public function __construct($value) {
|
|
$this->value = $value;
|
|
}
|
|
|
|
/**
|
|
* @return mixed Coroutine return value.
|
|
*/
|
|
public function getValue() {
|
|
return $this->value;
|
|
}
|
|
}
|