in src/Cursor.ts [58:69]
async getValue(): Promise<T> {
if (!this._values || this._valueIndex >= this._values.length) {
await this._getValues();
this._valueIndex = 0;
}
if (this._values && this._values.length > 0) {
const value = this._values[this._valueIndex];
this._valueIndex++;
return value;
}
return null;
}