Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/mod.ts>AsyncReducer.InstanceImpl

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class AsyncReducer.InstanceImpl
implements [AsyncReducer.Instance]<I, O>
import { AsyncReducer } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { InstanceImpl } = AsyncReducer;

The default AsyncReducer.Impl implementation.

Constructors

new
InstanceImpl(reducer: AsyncReducer.Impl<I, O, S>)

Properties

halt: () => void
readonly
halted: boolean
readonly
index: number
next: (value: I) => Promise<void>

Methods

getOutput(): Promise<O>
initialize(): Promise<void>
onClose(err?: unknown): Promise<void>

Constructors

new
InstanceImpl(reducer: AsyncReducer.Impl<I, O, S>)

Properties

halt: () => void
readonly
halted: boolean
readonly
index: number
next: (value: I) => Promise<void>

Methods

getOutput(): Promise<O>
initialize(): Promise<void>
onClose(err?: unknown): Promise<void>