Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
TheatreDev.Daemon
Contents
Documentation
Think of an actor that does not process any messages and simply interrupts between each iteration to check whether it's still alive.
Acquisition
Configuration of the daemon behaviour.
Constructors
forall state. Config | |
Fields
|
spawn :: Config -> IO Daemon Source #
Fork a thread to run the daemon loop on returning immediately with a handle to control it.