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

destroy() public method

Destroys the cursors
public destroy ( boolean $notify = false ) : boolean
$notify boolean
return boolean Success
    public function destroy($notify = false)
    {
        if ($this->destroyed) {
            return false;
        }
        $this->destroyed = true;
        if ($notify) {
            if ($this->callback) {
                $func = $this->callback;
                $func($this);
            }
        }
        unset($this->conn->cursors[$this->id]);
        return true;
    }