You are here

public function Pool::promise in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Pool.php \GuzzleHttp\Pool::promise()

Returns a promise.

Return value

PromiseInterface

Overrides PromisorInterface::promise

File

vendor/guzzlehttp/guzzle/src/Pool.php, line 72

Class

Pool
Sends and iterator of requests concurrently using a capped pool size.

Namespace

GuzzleHttp

Code

public function promise() {
  return $this->each
    ->promise();
}