mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
second ==> minute
This commit is contained in:
parent
cb9526b2fd
commit
241d5d72e2
@ -148,14 +148,15 @@ renderLTSVer lts = fpFromText $ concat
|
||||
, ".yaml"
|
||||
]
|
||||
|
||||
-- | Just print a message saying "still alive" every second, to appease Travis.
|
||||
-- | Just print a message saying "still alive" every minute, to appease Travis.
|
||||
stillAlive :: IO () -> IO ()
|
||||
stillAlive inner =
|
||||
withAsync printer $ const inner
|
||||
withAsync (printer 1) $ const inner
|
||||
where
|
||||
printer = forever $ do
|
||||
threadDelay 1000000
|
||||
putStrLn "Still alive"
|
||||
printer i = forever $ do
|
||||
threadDelay 60000000
|
||||
putStrLn $ "Still alive: " ++ tshow i
|
||||
printer $! i + 1
|
||||
|
||||
-- | Generate and check a new build plan, but do not execute it.
|
||||
--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user