Idris2/tests/racket/forkjoin001/Main.idr
Wen Kokke bd683938bf
Overhaul of concurrency primitives (#968)
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-02-05 16:16:20 +00:00

12 lines
165 B
Idris

module Main
import System
main : IO ()
main = do
threadID <- fork $ do
sleep 1
putStrLn "Hello"
threadWait threadID
putStrLn "Goodbye"