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 ()
Simple interface for 'IO' time operations
License
selectel/timeout
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple interface for 'IO' time operations
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published