We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749bb3a commit 4e88214Copy full SHA for 4e88214
components/promise.rst
@@ -82,7 +82,7 @@ executed if the request results in an error::
82
);
83
84
The failure callback can also return a ``Promise``. This can be useful to implement a retry
85
-mechanism, as follows:
+mechanism, as follows::
86
87
use Http\Discovery\HttpAsyncClientDiscovery;
88
use Http\Discovery\Psr17FactoryDiscovery;
@@ -103,7 +103,7 @@ mechanism, as follows:
103
// try another execution
104
return $client->sendAsyncRequest($request);
105
};
106
-
+
107
$promise = $client->sendAsyncRequest($request);
108
for ($i=0; $i < $retries; $i++) {
109
$promise = $promise->then($success, $failure);
0 commit comments