halive-0.1.0.5: A live recompiler

Safe HaskellNone
LanguageHaskell2010

Halive.Concurrent

Synopsis

Documentation

killThreads :: IO () Source

Kill all threads registered to be killed. Meant to be called at the beginning of your program to clean up threads from the last execution before continuing

registerThread :: ThreadId -> IO () Source

Register a thread to be killed when killThreads is called

forkIO' :: IO () -> IO ThreadId Source

Fork a thread and register it to be killed when killThreads is called

forkOS' :: IO () -> IO ThreadId Source

Fork an OS thread and register it to be killed when killThreads is called