loading...

Haskell IO concurrency

yujiri8 profile image Ryan Westlund ・1 min read

I was learning a bit more about how to do concurrency today and thought you might enjoy a laugh I just had.

Prelude Control.Concurrent> forkIO (sequence_ $ take 5 $ repeat $ putStrLn "x")
Thxr
eaxd
Idx 
25x4

x

It took me a second to understand what I was looking at. Sure enough, the result was different every time.

Discussion

markdown guide