Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.KvListIterator

A modern runtime for JavaScript and TypeScript.
Latest
class Deno.KvListIterator
implements AsyncIterableIterator<KvEntry<T>>
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { KvListIterator } = Deno;

UNSTABLE: New API, yet to be vetted.

An iterator over a range of data entries in a Deno.Kv.

The cursor getter returns the cursor that can be used to resume the iteration from the current position in the future.

Properties

readonly
cursor: string

Returns the cursor of the current position in the iteration. This cursor can be used to resume the iteration from the current position in the future by passing it to the cursor option of the list method.

Methods

next(): Promise<IteratorResult<KvEntry<T>, undefined>>
[Symbol.asyncIterator](): AsyncIterableIterator<KvEntry<T>>