1import Control.Concurrent (threadDelay, myThreadId)
2import Control.Monad.IO.Class (liftIO)
3import System.Random (randomIO)
9 hSetBuffering stdout LineBuffering
10 xs <- wait $ threads 4 $ do
11 liftIO $ hSetBuffering stdout LineBuffering
12 mainThread <- liftIO myThreadId
13 liftIO $ putStrLn $ "Main thread: " ++ show mainThread
14 x <- liftIO (randomIO :: IO Int)
15 liftIO $ putStrLn $ show x
17 y <- liftIO (randomIO :: IO Int)
19 liftIO $ threadDelay 1000000
20 evThread <- liftIO myThreadId
21 liftIO $ putStrLn $ "Event thread: " ++ show evThread
22 liftIO $ putStrLn $ 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