steeloverseer-2.0.1.0: A file watcher and development tool.

Safe HaskellSafe
LanguageHaskell2010

Sos.JobQueue

Synopsis

Documentation

data JobQueue Source #

A JobQueue is a mutable linked list of jobs. The job at the head of the list is assumed to be currently running, however, it is left in the list so it can be interrupted and restarted.

dequeueJob :: JobQueue -> IO JobResult Source #

Run the first job in the job queue, restarting it if signaled to do so. When this function returns, the job is popped off the job queue, and its result is returned.