async *scanIterator(options) {
    let cursor = "0";
    let keys;
    do {
      [cursor, keys] = await this.scan(cursor, options);
      for (const key of keys) {
        yield key;
      }
    } while (cursor !== "0");
  }
Same as `scan` but returns an AsyncIterator to allow iteration via `for await`.