clckwrks-0.24.0.15: A secure, reliable content management system (CMS) and blogging platform

Description

this module provides a simple mechanism for adding IO operations to a queue and running them in a single thread. This is useful if the IO operations have side-effects which could collide if run from multiple threads. For example, creating an image thumbnail and storing it on disk, running LaTeX, etc.

Synopsis

# Documentation

data IOThread a b Source #

Constructors

Arguments

 :: (a -> IO b) the IO function that does all the work -> IO (IOThread a b) a handle to the IOThread

issue a request to the IO thread and get back the result if the thread function throws an exception ioRequest will rethrow the exception.