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

function reactor<Result>(
  name: string,
  fn: (lastReactedEpoch: number) => Result,
  options?: EffectSchedulerOptions
): Reactor<Result>

Parameters

NameDescription

name

string

fn

(lastReactedEpoch: number) => Result

options

Returns

Reactor<Result>
Prev
react
Next
transact