Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data SchedT db tp m a Source #
Instances
MonadTrans (SchedT db tp) Source # | |
Defined in Periodic.Server.Scheduler | |
Monad m => MonadReader (SchedEnv db tp) (SchedT db tp m) Source # | |
Monad m => Monad (SchedT db tp m) Source # | |
Functor m => Functor (SchedT db tp m) Source # | |
Applicative m => Applicative (SchedT db tp m) Source # | |
Defined in Periodic.Server.Scheduler pure :: a -> SchedT db tp m a # (<*>) :: SchedT db tp m (a -> b) -> SchedT db tp m a -> SchedT db tp m b # liftA2 :: (a -> b -> c) -> SchedT db tp m a -> SchedT db tp m b -> SchedT db tp m c # (*>) :: SchedT db tp m a -> SchedT db tp m b -> SchedT db tp m b # (<*) :: SchedT db tp m a -> SchedT db tp m b -> SchedT db tp m a # | |
MonadIO m => MonadIO (SchedT db tp m) Source # | |
Defined in Periodic.Server.Scheduler | |
MonadUnliftIO m => MonadUnliftIO (SchedT db tp m) Source # | |
Defined in Periodic.Server.Scheduler |
initSchedEnv :: (MonadUnliftIO m, Persist db) => PersistConfig db -> m () -> m (SchedEnv db tp) Source #
startSchedT :: (MonadUnliftIO m, Persist db, Transport tp) => SchedT db tp m () Source #
pushGrab :: MonadIO m => IOList FuncName -> IOList JobHandle -> CSEnv tp -> SchedT db tp m () Source #
doneJob :: (MonadUnliftIO m, Persist db) => JobHandle -> ByteString -> SchedT db tp m () Source #
schedLaterJob :: (MonadUnliftIO m, Persist db) => JobHandle -> Int64 -> Int -> SchedT db tp m () Source #
acquireLock :: (MonadUnliftIO m, Persist db) => LockName -> Int -> JobHandle -> SchedT db tp m Bool Source #
releaseLock :: (MonadUnliftIO m, Persist db) => LockName -> JobHandle -> SchedT db tp m () Source #
shutdown :: MonadUnliftIO m => SchedT db tp m () Source #
lookupPrevResult :: MonadIO m => Job -> SchedT db tp m (Maybe ByteString) Source #
waitResult :: MonadIO m => TVar Bool -> Job -> SchedT db tp m ByteString Source #