A reactor is an object to hold a bunch of reactions, which create other reactions and events and respond to events.
- data Reactor m c = Reactor {
- insertExternals :: [External] -> m (Maybe (Reactor m c))
- restoreReactor :: SerialReactor c -> m (Maybe (Reactor m c))
- serializeReactor :: SerialReactor c
- mkReactor :: (Functor m, MonadState c m) => [Reaction m] -> Reactor m c
Documentation
The reactor object. Once created this closures control its lifecycle. Updaters return Nothing when the reactor is wrapped around no reactions.
Reactor | |
|