1import Control.Concurrent (threadDelay, myThreadId)
2import Control.Monad.IO.Class (liftIO)
3import System.Random (randomIO)
5import Control.Applicative
9main = wait_ $ threads 1 $ do
10 liftIO $ hSetBuffering stdout LineBuffering
11 mainThread <- liftIO myThreadId
12 liftIO $ putStrLn $ "Main thread: " ++ show mainThread
17 x <- liftIO (randomIO :: IO Int)
18 evThread <- liftIO myThreadId
19 liftIO $ putStrLn $ "X Event thread: " ++ show evThread
20 liftIO $ putStrLn $ "x = " ++ (show x)
24 y <- liftIO (randomIO :: IO Int)
26 -- liftIO $ threadDelay 10000000
27 evThread <- liftIO myThreadId
28 liftIO $ putStrLn $ "Y Event thread: " ++ show evThread
29 liftIO $ putStrLn $ "y = " ++ (show y)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list