namespace seekat\API\Call;
-use AsyncInterop\Promise;
use http\{
Client, Client\Request, Client\Response
};
private $response;
/**
- * @var Promise
+ * @var mixed
*/
private $promise;
$this->reject = API\Future\rejecter($future, $context);
}
- function __invoke() : Promise {
+ function __invoke() {
if ($this->cache->load($this->request, $cached)) {
$this->logger->info("deferred -> cached", [
"method" => $this->request->getRequestMethod(),