wait-handle-0.1.1: Wait handles are MVars which can only be written to once, and from which values can never be removed.

Safe HaskellNone
LanguageHaskell98

Control.Concurrent.MVar.WaitHandle

Synopsis

Documentation

data WaitHandle a Source

A WaitHandle is basically just an MVar that can only be put into once, and then never gets anything removed from it

mayWaitOnWaitHandle :: WaitHandle a -> IO Bool Source

Looks ahead to see if the caller is likely to have to wait on the wait handle. If this function returns True then they may or may not actually have to wait, but if the function returns False then they certainly won't have to wait.