Module

Periodic.Worker

Package
purescript-periodic
Repository
Lupino/purescript-periodic

#WK Source

data WK eff m

Instances

#WorkerT Source

newtype WorkerT eff m a

Instances

#runWorkerT Source

runWorkerT :: forall eff m a. MonadEff (periodic :: PERIODIC | eff) m => (m Unit -> Eff (periodic :: PERIODIC | eff) Unit) -> a -> WorkerT eff m Unit -> m Unit

#addFunc Source

addFunc :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => String -> JobT m Unit -> WorkerT eff m Unit

#work Source

work :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => Int -> WorkerT eff m Unit

#Job Source

data Job :: Type

Instances

#JobT Source

newtype JobT m a

Instances

#done Source

done :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => JobT m Unit

#fail Source

fail :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => JobT m Unit

#schedLater Source

schedLater :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => Int -> JobT m Unit

#funcName Source

funcName :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => JobT m String

#name Source

name :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => JobT m String

#workload Source

workload :: forall eff m. MonadEff (periodic :: PERIODIC | eff) m => JobT m String

Re-exports from Periodic.Types

#PERIODIC Source