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