Skip to main content
Deno.KvListIterator - Deno documentation
class Deno.KvListIterator
implements AsyncIterableIterator<KvEntry<T>>
Unstable

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.

Type Parameters

T

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

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