every-0.0.1: Run a process every so often.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Concurrent.Async.Every

Synopsis

Documentation

every Source #

Arguments

:: Int

time difference in microseconds

-> Maybe Int

initial delay before first invocation

-> IO a 
-> IO ThreadId 

Spawn a process forever

everyFunc Source #

Arguments

:: (Int -> Int)

function from total time spent, to the time to delay from now

-> IO a 
-> IO ThreadId 

everyFuncForking :: (Int -> Int) -> IO a -> IO (ThreadId, TChan (Async a)) Source #

A version of everyFunc which forks every time *coolshades*.

data EveryException Source #

Constructors

EveryExceptionReset (Maybe Int) 

Instances

Instances details
Exception EveryException Source # 
Instance details

Defined in Control.Concurrent.Async.Every

Generic EveryException Source # 
Instance details

Defined in Control.Concurrent.Async.Every

Associated Types

type Rep EveryException 
Instance details

Defined in Control.Concurrent.Async.Every

type Rep EveryException = D1 ('MetaData "EveryException" "Control.Concurrent.Async.Every" "every-0.0.1-CwiDFFcvjDR3HvnYANdKMa" 'False) (C1 ('MetaCons "EveryExceptionReset" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))
Show EveryException Source # 
Instance details

Defined in Control.Concurrent.Async.Every

Eq EveryException Source # 
Instance details

Defined in Control.Concurrent.Async.Every

type Rep EveryException Source # 
Instance details

Defined in Control.Concurrent.Async.Every

type Rep EveryException = D1 ('MetaData "EveryException" "Control.Concurrent.Async.Every" "every-0.0.1-CwiDFFcvjDR3HvnYANdKMa" 'False) (C1 ('MetaCons "EveryExceptionReset" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))