updated-packages
This commit is contained in:
7
vendor/aws/aws-sdk-php/src/Waiter.php
vendored
7
vendor/aws/aws-sdk-php/src/Waiter.php
vendored
@@ -2,7 +2,7 @@
|
||||
namespace Aws;
|
||||
|
||||
use Aws\Exception\AwsException;
|
||||
use GuzzleHttp\Promise;
|
||||
use GuzzleHttp\Promise\Coroutine;
|
||||
use GuzzleHttp\Promise\PromisorInterface;
|
||||
use GuzzleHttp\Promise\RejectedPromise;
|
||||
|
||||
@@ -86,9 +86,12 @@ class Waiter implements PromisorInterface
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Coroutine
|
||||
*/
|
||||
public function promise()
|
||||
{
|
||||
return Promise\coroutine(function () {
|
||||
return Coroutine::of(function () {
|
||||
$name = $this->config['operation'];
|
||||
for ($state = 'retry', $attempt = 1; $state === 'retry'; $attempt++) {
|
||||
// Execute the operation.
|
||||
|
||||
Reference in New Issue
Block a user