Skip to content

Commit db88ca0

Browse files
authored
Make promises usage more explicit
Make promises usage more explicit
2 parents 061b4a2 + 141ac2a commit db88ca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ $promise->then(
298298
);
299299

300300
echo "I will print out before the promise is fulfilled";
301+
302+
// You can combine multiple promises using \GuzzleHttp\Promise\all() and other functions from the library.
303+
$promise->wait();
301304
```
302305

303306
## Handling Exceptions

0 commit comments

Comments
 (0)