Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Twee.Task
Description
A module which can run housekeeping tasks every so often.
Documentation
newTask :: MonadIO m => Double -> Double -> m a -> m (Task m a) Source #
Create a new task that should be run a certain proportion of the time. The first argument is how often in seconds the task should run, at most. The second argument is the maximum percentage of time that should be spent on the task.