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
Name | Type |
---|---|
name | string |
fn | (lastReactedEpoch : number ) => Result |
options? | EffectSchedulerOptions |
Returns
Reactor
<Result
>
Defined in: signia/src/EffectScheduler.ts:247