Skip to main content

class InstanceImpl<I,O,S>

The default AsyncReducer.Impl implementation.

Type parameters

NameDescription
Ithe input element type
Othe output element type
Sthe reducer state type

Properties

halt

undocumented

Definition

halt: () => void;

halted

undocumented

Definition

get halted(): boolean;

index

undocumented

Definition

get index(): number;

next

undocumented

Definition

next: (value: I) => Promise<void>;

reducer

undocumented

Definition

readonly reducer: AsyncReducer.Impl<I, O, S>;

Methods

getOutput

undocumented

Definition

getOutput(): Promise<O>;

initialize

undocumented

Definition

initialize(): Promise<void>;

onClose

undocumented

Definition

onClose(err?: unknown): Promise<void>;

Parameters

NameTypeDescription
errunknown