essence-of-live-coding-0.2.0.1: General purpose live coding framework

Safe HaskellSafe
LanguageHaskell2010

LiveCoding.Handle.Examples

Synopsis

Documentation

ioRefHandle :: a -> Handle IO (IORef a) Source #

Create an IORef, with no special cleanup action.

emptyMVarHandle :: Handle IO (MVar a) Source #

Create an uninitialised MVar, with no special cleanup action.

newMVarHandle :: a -> Handle IO (MVar a) Source #

Create an MVar initialised to some value a, with no special cleanup action.

threadHandle :: IO () -> Handle IO ThreadId Source #

Launch a thread executing the given action and kill it when the handle is removed.