Skip to main content

Type Alias: AsyncReducer<Value, Acc, Finished>

AsyncReducer<Value, Acc, Finished>: RawAsyncReducerWithFinish<Value, Acc, Finished>

An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create, then adding values to the accumulator values using RawAsyncReducerWithoutFinish.add, and then transforming the final accumulator using RawAsyncReducerWithFinish.finish. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine.

Type Parameters

Value = unknown

Acc = Value

Finished = Acc

Since

v2.0.0

Defined in

reducers.d.ts:389