Module

Stetson.Loop

#initResult

initResult :: forall state. Req -> state -> Effect (InitResult state)

#init

init :: forall msg state. LoopInitHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state

#handler

handler :: forall msg state. InitHandler state -> StetsonHandler msg state

#info

info :: forall msg state. LoopInfoHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state

#terminate

terminate :: forall msg state. (Foreign -> Req -> state -> Effect Unit) -> StetsonHandler msg state -> StetsonHandler msg state

Add a terminate callback to the provided StetsonHandler

Re-exports from Effect.Class

#liftEffect

liftEffect :: forall m a. MonadEffect m => Effect a -> m a

Re-exports from Erl.Process

#self

self :: forall a x. HasSelf x a => x (Process a)

Modules