Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Deno.KvListIterator
implements AsyncIterableIterator<KvEntry<T>>
import { Deno } from "https://deno.land/x/deno@v1.40.5/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>>