The timeout package

[Tags:library, mit, test]

Generalized sleep and timeout functions


[Skip to Readme]

Properties

Versions 0.0.0, 0.1.0, 0.1.1
Change log CHANGES.md
Dependencies base (<5), exceptions (>=0.6), mtl, time [details]
License MIT
Copyright 2014 Fedor Gogolev 2013 Selectel
Author Fedor Gogolev <knsd@knsd.net>
Maintainer knsd@knsd.net
Stability Alpha
Category Concurrency, Control
Home page https://github.com/lambda-llama/timeout
Bug tracker https://github.com/lambda-llama/timeout/issues
Source repository head: git clone https://github.com/lambda-llama/timeout
Uploaded Sat Aug 2 12:36:51 UTC 2014 by FedorGogolev
Distributions NixOS:0.1.1
Downloads 668 total (12 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for timeout

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 ()