Skip to content
lambda-llamaPublic

About

Generalized sleep and timeout functions

Resources

Stars

2 stars

Watchers

5 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

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

About

Generalized sleep and timeout functions

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages