MCPcopy
hub / github.com/rx-angular/rx-angular / withAccumulatorFn

Function withAccumulatorFn

libs/state/src/lib/provide-rx-state-config.ts:38–43  ·  view source on GitHub ↗
(fn: AccumulationFn)

Source from the content-addressed store, hash-verified

36 * @param fn
37 */
38export function withAccumulatorFn(fn: AccumulationFn): RxStateConfigFn {
39 return {
40 kind: 'Accumulator',
41 providers: [{ provide: RX_ACCUMULATOR_FN, useValue: fn }],
42 };
43}
44
45/**
46 * Injection token for the default state scheduler

Callers 1

rx-state.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected