public function close()
    {
        $this->closed = true;
        foreach ($this->connections as $connection) {
            $connection->close();
        }
        $this->idle = new \SplQueue;

        if ($this->deferred instanceof Deferred) {
            $deferred = $this->deferred;
            $this->deferred = null;
            $deferred->fail(new FailureException("Connection pool closed"));
        }
    }
public function close()
    {
        $this->closed = true;
        foreach ($this->connections as $connection) {
            $connection->close();
        }
        $this->idle = new \SplQueue;

        if ($this->deferred instanceof Deferred) {
            $deferred = $this->deferred;
            $this->deferred = null;
            $deferred->fail(new FailureException("Connection pool closed"));
        }
    }
public function close ( ) { $ this -> closed = true ; foreach ( $ this -> connections as $ connection ) { $ connection -> close ( ) ; } $ this -> idle = new \ SplQueue ; if ( $ this -> deferred instanceof Deferred ) { $ deferred = $ this -> deferred ; $ this -> deferred = null ; $ deferred -> fail ( new FailureException ( "Connection pool closed" ) ) ; } }
Close all connections in the pool. No further queries may be made after a pool is closed.
Close all connections in the pool . No further queries may be made after a pool is closed .