Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
freshSemaphore :: String -> Int -> IO Semaphoresemaphore-compat System.Semaphore Create a fresh semaphore with the given amount of tokens. Its name will start with the given prefix, but will have a random suffix appended to it.
getSemaphoreName :: SemaphoreName -> Stringsemaphore-compat System.Semaphore No documentation available.
getSemaphoreValue :: Semaphore -> IO Intsemaphore-compat System.Semaphore Query the current semaphore value (how many tokens it has available). This is mainly for debugging use, as it is easy to introduce race conditions when nontrivial program logic depends on the value returned by this function.
interruptWaitOnSemaphore :: WaitId -> IO ()semaphore-compat System.Semaphore Interrupt a semaphore wait operation initiated by forkWaitOnSemaphoreInterruptible.
openSemaphore :: SemaphoreName -> IO Semaphoresemaphore-compat System.Semaphore Open a semaphore with the given name. If no such semaphore exists, throws an error.
releaseSemaphore :: Semaphore -> Int -> IO ()semaphore-compat System.Semaphore Release a semaphore: add n to its internal counter. No-op when `n <= 0`.
semaphore :: Semaphore -> !Semaphoresemaphore-compat System.Semaphore No documentation available.
semaphoreName :: Semaphore -> !SemaphoreNamesemaphore-compat System.Semaphore No documentation available.
tryWaitOnSemaphore :: Semaphore -> IO Boolsemaphore-compat System.Semaphore Try to obtain a token from the semaphore, without blocking. Immediately returns False if no resources are available.
waitOnSemaphore :: Semaphore -> IO ()semaphore-compat System.Semaphore Indefinitely wait on a semaphore. If you want to be able to cancel a wait operation, use forkWaitOnSemaphoreInterruptible instead.