flaw-base-0.1.0.0

LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Flaw.Flow

Description

 
Synopsis

Documentation

forkFlow :: IO () -> IO ((), IO ()) Source #

Fork a thread.

forkFlowOS :: IO () -> IO ((), IO ()) Source #

Fork an OS thread.

data Flow Source #

Operation flow.

newFlow :: IO (Flow, IO ()) Source #

Create operation flow, i.e. single stream of operations running in a separate thread, and booked into Flaw.Book.

newFlowOS :: IO (Flow, IO ()) Source #

Create operation flow in a bound thread.

newMultiFlow :: Int -> IO (Flow, IO ()) Source #

Create operation multiflow, i.e. multiple threads, booked into Flaw.Book, and using a single queue of operations.

newMultiFlowOS :: Int -> IO (Flow, IO ()) Source #

Create operation multiflow using bounded threads.

asyncRunInFlow :: Flow -> IO () -> STM () Source #

runInFlow :: Flow -> IO a -> IO a Source #