Skip to main content

Type Alias: RawAsyncReducerWithFinish<Value, Acc, Finished, This>

RawAsyncReducerWithFinish<Value, Acc, Finished, This>: RawAsyncReducerWithoutFinish<Value, Acc, This> & object

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 declaration

finish()

finish: (this, acc) => MaybePromiseLike<Finished>

Parameters

this

This

acc

Acc

Returns

MaybePromiseLike<Finished>

Type Parameters

Value = unknown

Acc = Value

Finished = Acc

This = unknown

Since

v2.0.0

Defined in

reducers.d.ts:368