Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Job a = StopTheWorld
- data JobState
- process :: (Env e, Unit a) => (a -> ActionM e a ()) -> JobM e a ()
- createJob :: Unit a => JobState -> a -> IO (Job a)
- createOnTimeJob :: Unit a => JobState -> UTCTime -> a -> IO (Job a)
- printJob :: Unit a => Job a -> IO ()
- module Network.JobQueue.Types
- module Network.JobQueue.Action
Documentation
Job control block Job consists of State, Unit, CTime, OnTime, Id, Group, and Priority.
- State - takes one of 5 states (initialized, runnable, running, aborted and finished)
- Unit - an instance of Unit class, which is specified by type parameter of Job data type
- CTime - creation time
- OnTime - the time at which this job starts
- Id - Identifier of this job
- Group - Group ID of this job
- Priority - the priority of this job
process :: (Env e, Unit a) => (a -> ActionM e a ()) -> JobM e a () Source
Declare a function which accepts a unit and execute the action of it if possible.
module Network.JobQueue.Types
module Network.JobQueue.Action