public function wait() : void
    {
        if (!empty($this->promises)) {
            Promise\settle($this->promises)->wait();
        }
    }
public function wait() : void
    {
        if (!empty($this->promises)) {
            Promise\settle($this->promises)->wait();
        }
    }
public function wait ( ) : void { if ( ! empty ( $ this -> promises ) ) { Promise \ settle ( $ this -> promises ) -> wait ( ) ; } }
Settle all promises.

@return void
Settle all promises .