Function Connection.hasPending
Gets whether anything (rows, headers or binary) is pending. New commands cannot be sent on a connection while anything is pending (the pending data will automatically be purged.)
bool hasPending() pure nothrow @property @safe const;