entwine-0.0.4: entwine - Concurrency tools
Entwine.Data.Pin
Contents
data Pin Source #
A pin is an abstract type, representing a simple barrier that can only have its state queried in a non-blocking manner.
This useful for implementing things like passing in a hook to terminate or stop waiting for a process.
newPin :: IO Pin Source #
checkPin :: Pin -> IO Bool Source #
waitForPin :: Pin -> IO () Source #
pullPin :: Pin -> IO () Source #