menu
AsyncIterator
import { AsyncIterator } from "destack:async";
Protocol for asynchronously producing values.
1export newtype interface AsyncIterator<T: Copy, R: Copy = void> {2 next(): Promise<IteratorResult<T, R>>;3}Members
next(): Promise<IteratorResult<T, R>>Advance and return the next yield or completion.