+ $this->response = $cached;
+ $this->complete("cached");
+ return true;
+ }
+
+ private function refresh(Response $cached = null) : void {
+ $this->client->enqueue($this->request, function(Response $response) use($cached) {
+ $this->response = $response;
+ $this->complete();
+ return true;
+ });
+
+ $this->logger->info(($cached ? "stale" : "deferred") . " -> enqueued", [
+ "method" => $this->request->getRequestMethod(),
+ "url" => $this->request->getRequestUrl(),
+ ]);
+
+ /* start off */
+ $this->client->once();