Pool
class Pool mixin Factory (View source)
Properties
| protected Factory | $factory | The factory instance. |
|
| protected callable | $handler | The handler function for the Guzzle client. |
|
| protected PendingRequest> | $pool | The pool of requests. |
Methods
Add a request to the pool with a numeric index.
Add a request to the pool with a key.
Retrieve a new async pending request.
Retrieve the requests in the pool.
Add a request to the pool with a numeric index and forward the method call to the request.
Details
__construct(Factory|null $factory = null)
Create a new requests pool.
PendingRequest|Promise
newRequest()
Add a request to the pool with a numeric index.
PendingRequest
as(string $key)
Add a request to the pool with a key.
protected PendingRequest
asyncRequest()
Retrieve a new async pending request.
PendingRequest>
getRequests()
Retrieve the requests in the pool.
PendingRequest|Promise
__call(string $method, array $parameters)
Add a request to the pool with a numeric index and forward the method call to the request.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.