Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
ReactHandle
- type ReactHandle m = IORef (MSF m () ())
- reactInit :: MonadIO m => MSF m () () -> m (ReactHandle m)
- react :: MonadIO m => ReactHandle m -> m ()
- createWormhole :: MonadIO m => a -> m (MSF m a (), MSF m () a)
Documentation
type ReactHandle m = IORef (MSF m () ()) Source #
A storage for the current state of an MSF
reactInit :: MonadIO m => MSF m () () -> m (ReactHandle m) Source #
Needs to be called before the external main loop is dispatched
react :: MonadIO m => ReactHandle m -> m () Source #
The callback that needs to be called by the main loop at every cycle