src/Pool.php
public function flush()
    {
        // Prevent an endless loop and work on a batch copy.
        $promises = $this->getPromises();
        $this->setPromises([]);
        Promise\settle($promises)->wait();
    }
public function flush()
    {
        // Prevent an endless loop and work on a batch copy.
        $promises = $this->getPromises();
        $this->setPromises([]);
        Promise\settle($promises)->wait();
    }
public function flush ( ) { // Prevent an endless loop and work on a batch copy. $ promises = $ this -> getPromises ( ) ; $ this -> setPromises ( [ ] ) ; Promise \ settle ( $ promises ) -> wait ( ) ; }
Flushes the collected pull of promises.
@return void
Flushes the collected pull of promises .