Skip to main content

class FromResourceIterator<T,R>

undocumented

Extends: AsyncFastIteratorBase<T>

Type parameters

NameDescription
Tundocumented
Rundocumented

Properties

asyncStreamSourceHelpers

undocumented

Definition

readonly asyncStreamSourceHelpers: AsyncStreamSourceHelpers;

close

undocumented

Definition

readonly close: ((resource: R) => MaybePromise<void>) | undefined;

createSource

undocumented

Definition

readonly createSource: (resource: R) => MaybePromise<AsyncStreamSource<T>>;

iterator

undocumented

Definition

iterator: AsyncFastIterator<T> | undefined;

open

undocumented

Definition

readonly open: () => MaybePromise<R>;

resource

undocumented

Definition

resource: R | undefined;

return

undocumented

Definition

return?: () => Promise<any>;

Overrides

AsyncFastIteratorBase.return

Methods

fastNext

undocumented

Definition

fastNext<O>(otherwise?: AsyncOptLazy<O>): Promise<T | O>;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
otherwiseAsyncOptLazy<O>

Overrides

AsyncFastIteratorBase.fastNext

next

Returns a promise resolving to the next IteratorResult.

Definition

next(): Promise<IteratorResult<T>>;

Overrides

AsyncFastIterator.next, AsyncFastIteratorBase.next