Skip to main content
Module

x/ldkit/library/asynciterator.ts>AsyncIterator#clone

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
method AsyncIterator.prototype.clone
Re-export
import { AsyncIterator } from "https://deno.land/x/ldkit@v0.6.3/library/asynciterator.ts";

Creates a copy of the current iterator, containing all items emitted from this point onward. Further copies can be created; they will all start from this same point. After this operation, only read the returned copies instead of the original iterator.

Returns

ClonedIterator<T>

A new iterator that contains all future items of this iterator