Skip to main content

reactor()

Creates a Reactor, which is a thin wrapper around an EffectScheduler.

Signature

reactor<Result>(name: string, fn: Function, options?: EffectSchedulerOptions): Reactor<Result>;

Type parameters

  • Result

Parameters

NameType
namestring
fn(lastReactedEpoch: number) => Result
options?EffectSchedulerOptions

Returns

Reactor<Result>

Defined in: signia/src/EffectScheduler.ts:247