Idris2/tests/racket/mutex003/Main.idr

13 lines
225 B
Idris
Raw Normal View History

-- Idris2
import System
import System.Concurrency
||| Test releasing without acquiring errors correctly
main : IO ()
main =
do m <- makeMutex
mutexRelease m
putStrLn "Released w/o acquiring (SHOULDN'T HAPPEN)"