essence-of-live-coding-0.2.1: General purpose live coding framework
LiveCoding.Handle.Examples
ioRefHandle :: a -> Handle IO (IORef a) Source #
Create an IORef, with no special cleanup action.
IORef
emptyMVarHandle :: Handle IO (MVar a) Source #
Create an uninitialised MVar, with no special cleanup action.
MVar
newMVarHandle :: a -> Handle IO (MVar a) Source #
Create an MVar initialised to some value a, with no special cleanup action.
a
threadHandle :: IO () -> Handle IO ThreadId Source #
Launch a thread executing the given action and kill it when the handle is removed.