v2.1.8
This commit is contained in:
parent
658eb9b4da
commit
476389b914
93 changed files with 1864 additions and 305 deletions
12
vendor/guzzlehttp/promises/README.md
vendored
12
vendor/guzzlehttp/promises/README.md
vendored
|
|
@ -19,8 +19,8 @@ composer require guzzlehttp/promises
|
|||
|
||||
| Version | Status | PHP Version |
|
||||
|---------|--------------|--------------|
|
||||
| 3.0 | Latest | >=7.4,<8.6 |
|
||||
| 2.5 | Maintenance | >=7.2.5,<8.6 |
|
||||
| 3.0 | Latest | >=7.4,<8.7 |
|
||||
| 2.5 | Maintenance | >=7.2.5,<8.7 |
|
||||
| 1.5 | End of Life | >=5.5,<8.3 |
|
||||
|
||||
## Quick Start
|
||||
|
|
@ -50,6 +50,14 @@ You can wait for a promise to complete synchronously:
|
|||
$value = $promise->wait();
|
||||
```
|
||||
|
||||
A promise's `getState()` describes how it was settled, not the eventual
|
||||
outcome: a promise that was resolved with another promise, directly or by
|
||||
returning one from a `then()` handler, reports `fulfilled` while the inner
|
||||
promise may still be pending, and `wait()` can still throw if the inner
|
||||
promise rejects. Poll the state only on promises settled with plain values,
|
||||
or call `wait()` first (see
|
||||
[guzzle/promises#101](https://github.com/guzzle/promises/issues/101)).
|
||||
|
||||
When using Guzzle HTTP requests, asynchronous methods return
|
||||
`GuzzleHttp\Promise\PromiseInterface` instances:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue