src/Bynder/Api/Impl/Upload/FileUploader.php
public function pollStatusIterator($finalizeResponse)
    {
        $iterations = 0;
        while ($iterations < self::MAX_POLLING_ITERATIONS) {
            $delay = $iterations == 0 ? 0 : self::POLLING_IDLE_TIME;
            yield $this->pollStatusAsync(['items' => $finalizeResponse['importId']], $delay);
            $iterations++;
        }
    }
public function pollStatusIterator($finalizeResponse)
    {
        $iterations = 0;
        while ($iterations < self::MAX_POLLING_ITERATIONS) {
            $delay = $iterations == 0 ? 0 : self::POLLING_IDLE_TIME;
            yield $this->pollStatusAsync(['items' => $finalizeResponse['importId']], $delay);
            $iterations++;
        }
    }
public function pollStatusIterator ( $ finalizeResponse ) { $ iterations = 0 ; while ( $ iterations < self :: MAX_POLLING_ITERATIONS ) { $ delay = $ iterations == 0 ? 0 : self :: POLLING_IDLE_TIME ; yield $ this -> pollStatusAsync ( [ 'items' => $ finalizeResponse [ 'importId' ] ] , $ delay ) ; $ iterations ++ ; } }
Generates polling promises, sleeping between each request and limiting it to 1 thread to make sure enough time
passes after file upload.

@param $finalizeResponse

@return \Generator
@throws Exception
Generates polling promises sleeping between each request and limiting it to 1 thread to make sure enough time passes after file upload .