Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhihai committed Nov 14, 2023
1 parent 6e1642b commit c2cd895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct()
public function __destruct()
{
if (!empty($this->promises)) {
Promise\settle($this->promises)->wait();
\GuzzleHttp\Promise\Utils($this->promises)->wait();
}
}

Expand Down Expand Up @@ -695,7 +695,7 @@ protected function requestAsync(string $method, string $url, $options = null, ca
public function wait()
{
if (!empty($this->promises)) {
Promise\settle($this->promises)->wait();
\GuzzleHttp\Promise\Utils($this->promises)->wait();
}
$this->promises = [];
}
Expand Down

0 comments on commit c2cd895

Please sign in to comment.