Idris2/tests/racket/mutex001/Main.idr
2021-03-15 13:43:12 +00:00

14 lines
242 B
Idris

-- Idris2
import System.Concurrency
||| Test basic lock/acquire and unlock/release functionality
main : IO ()
main =
do m <- makeMutex
mutexAcquire m
putStrLn "Mutex acquired"
mutexRelease m
putStrLn "Mutex released"