1import Control.Concurrent (myThreadId, threadDelay)
2import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
3import System.Random (randomIO)
5import qualified Streamly.Prelude as S
8 hSetBuffering stdout LineBuffering
10 x <- S.take 10 $ loop "A" `parallel` loop "B"
11 S.yieldM $ myThreadId >>= putStr . show
18 -- parallely $ cycle1 $ yieldM (...)
19 loop :: String -> Serial (String, Int)
21 S.yieldM $ threadDelay 1000000
22 rnd <- S.yieldM (randomIO :: IO Int)
23 S.yieldM $ myThreadId >>= putStr . show
24 >> putStr " yielding "
26 return (name, rnd) `parallel` loop name
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