monad-schedule-0.1.2.1: A new, simple, composable concurrency abstraction.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.Schedule.OSThreadPool

Documentation

newtype OSThreadPool (n :: Nat) a Source #

Constructors

OSThreadPool 

Fields

Instances

Instances details
MonadIO (OSThreadPool n) Source # 
Instance details

Defined in Control.Monad.Schedule.OSThreadPool

Methods

liftIO :: IO a -> OSThreadPool n a #

Applicative (OSThreadPool n) Source # 
Instance details

Defined in Control.Monad.Schedule.OSThreadPool

Methods

pure :: a -> OSThreadPool n a #

(<*>) :: OSThreadPool n (a -> b) -> OSThreadPool n a -> OSThreadPool n b #

liftA2 :: (a -> b -> c) -> OSThreadPool n a -> OSThreadPool n b -> OSThreadPool n c #

(*>) :: OSThreadPool n a -> OSThreadPool n b -> OSThreadPool n b #

(<*) :: OSThreadPool n a -> OSThreadPool n b -> OSThreadPool n a #

Functor (OSThreadPool n) Source # 
Instance details

Defined in Control.Monad.Schedule.OSThreadPool

Methods

fmap :: (a -> b) -> OSThreadPool n a -> OSThreadPool n b #

(<$) :: a -> OSThreadPool n b -> OSThreadPool n a #

Monad (OSThreadPool n) Source # 
Instance details

Defined in Control.Monad.Schedule.OSThreadPool

Methods

(>>=) :: OSThreadPool n a -> (a -> OSThreadPool n b) -> OSThreadPool n b #

(>>) :: OSThreadPool n a -> OSThreadPool n b -> OSThreadPool n b #

return :: a -> OSThreadPool n a #

(KnownNat n, (1 <=? n) ~ 'True) => MonadSchedule (OSThreadPool n) Source # 
Instance details

Defined in Control.Monad.Schedule.OSThreadPool

data WorkerLink a Source #

Constructors

WorkerLink 

Fields