PHPDaemon\Clients\Mongo\Cursor::__destruct PHP Method

__destruct() public method

Cursor's destructor. Sends a signal to the server
public __destruct ( ) : void
return void
    public function __destruct()
    {
        try {
            if (mb_orig_substr($this->id, 0, 1) === 'c') {
                $this->conn->pool->killCursors([mb_orig_substr($this->id, 1)], $this->conn);
            }
        } catch (ConnectionFinished $e) {
        }
    }