The timeout package

[Tags: library, mit]

Generalized sleep and timeout functions


[Skip to ReadMe]

Properties

Versions0.0.0, 0.1.0, 0.1.1
Change logCHANGES.md
Dependenciesbase (<5), exceptions (>=0.6), mtl, time [details]
LicenseMIT
Copyright2014 Fedor Gogolev 2013 Selectel
AuthorFedor Gogolev <knsd@knsd.net>
Maintainerknsd@knsd.net
StabilityAlpha
CategoryConcurrency, Control
Home pagehttps://github.com/lambda-llama/timeout
Bug trackerhttps://github.com/lambda-llama/timeout/issues
Source repositoryhead: git clone https://github.com/lambda-llama/timeout
UploadedSat Aug 2 12:36:51 UTC 2014 by FedorGogolev
DistributionsNixOS:0.1.1
Downloads441 total (24 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for timeout-0.1.1

timeout Build Status Build Status

Generalized sleep and timeout functions.

Example

module Main where

import Control.Timeout (timeout, sleep)

main :: IO ()
main = do
    timeout 1 $ sleep 2  -- Will return IO Nothing
    timeout 2 $ sleep 1  -- Will return IO (Just ())
    return ()