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.

  1. freshSemaphore :: String -> Int -> IO Semaphore

    semaphore-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.

  2. getSemaphoreName :: SemaphoreName -> String

    semaphore-compat System.Semaphore

    No documentation available.

  3. getSemaphoreValue :: Semaphore -> IO Int

    semaphore-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.

  4. interruptWaitOnSemaphore :: WaitId -> IO ()

    semaphore-compat System.Semaphore

    Interrupt a semaphore wait operation initiated by forkWaitOnSemaphoreInterruptible.

  5. openSemaphore :: SemaphoreName -> IO Semaphore

    semaphore-compat System.Semaphore

    Open a semaphore with the given name. If no such semaphore exists, throws an error.

  6. releaseSemaphore :: Semaphore -> Int -> IO ()

    semaphore-compat System.Semaphore

    Release a semaphore: add n to its internal counter. No-op when `n <= 0`.

  7. semaphore :: Semaphore -> !Semaphore

    semaphore-compat System.Semaphore

    No documentation available.

  8. semaphoreName :: Semaphore -> !SemaphoreName

    semaphore-compat System.Semaphore

    No documentation available.

  9. tryWaitOnSemaphore :: Semaphore -> IO Bool

    semaphore-compat System.Semaphore

    Try to obtain a token from the semaphore, without blocking. Immediately returns False if no resources are available.

  10. 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.

Page 999 of many | Previous | Next