| Current Path : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/framework/Async/ |
| Current File : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/framework/Async/DeferredInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\Async;
/**
* Describes a value that will be available at later time.
*
* @api
*/
interface DeferredInterface
{
/**
* Wait for and return the value.
*
* @return mixed Value.
* @throws \Throwable When it was impossible to get the value.
*/
public function get();
/**
* Is the process of getting the value is done?
*
* @return bool
*/
public function isDone(): bool;
}