Idris2/tests/racket/mutex001/Main.idr

14 lines
242 B
Idris
Raw Normal View History

-- 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"