This module uses Haskell concurrency libraries to build an extremely simple event system that should perform better than the Control.Event module but does not provide features such as STM action scheduling.
'addEvent delay action' will delay
delay microseconds then execute
action. An EventId
is returned, allowing the event to be canceled.
- There is a small possibility the delEvent occured after the forkIO but before the signalling MVar was filled, thus causing this uncertainty.