| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | GHC2021 | 
Butler.Core.Processor
Contents
Synopsis
- data Processor
 - withProcessor :: (Processor -> IO a) -> IO a
 - awaitProcessor :: Processor -> STM ()
 - data Process = Process {}
 - newtype ProcessAction = ProcessAction (Process -> IO ())
 - lookupChildProcess :: Process -> Pid -> STM (Maybe Process)
 - lookupProcess :: Processor -> Pid -> STM (Maybe Process)
 - startProcess :: Clock -> Logger SystemEvent -> Processor -> Maybe Process -> ProgramName -> ProcessAction -> IO Process
 - stopProcess :: Process -> STM Bool
 - module Butler.Core.Process
 
Documentation
withProcessor :: (Processor -> IO a) -> IO a #
awaitProcessor :: Processor -> STM () #
A process is a killable thread.
Constructors
| Process | |
Fields 
  | |
newtype ProcessAction #
Constructors
| ProcessAction (Process -> IO ()) | 
startProcess :: Clock -> Logger SystemEvent -> Processor -> Maybe Process -> ProgramName -> ProcessAction -> IO Process #
stopProcess :: Process -> STM Bool #
Stop a process, returns False if the process did not received the message.
useful re-exports
module Butler.Core.Process