Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. asyncThreadId :: Async a -> ThreadId

    unliftio UnliftIO.Async

    Returns the ThreadId of the thread running the given Async.

  2. data ThreadId

    unliftio UnliftIO.Concurrent

    A ThreadId is an abstract type representing a handle to a thread. ThreadId is an instance of Eq, Ord and Show, where the Ord instance implements an arbitrary total ordering over ThreadIds. The Show instance lets you convert an arbitrary-valued ThreadId to string form; showing a ThreadId value is occasionally useful when debugging or diagnosing the behaviour of a concurrent program. Note: in GHC, if you have a ThreadId, you essentially have a pointer to the thread itself. This means the thread itself can't be garbage collected until you drop the ThreadId. This misfeature would be difficult to correct while continuing to support threadStatus.

  3. isCurrentThreadBound :: MonadIO m => m Bool

    unliftio UnliftIO.Concurrent

    Lifted version of isCurrentThreadBound.

  4. killThread :: MonadIO m => ThreadId -> m ()

    unliftio UnliftIO.Concurrent

    Lifted version of killThread.

  5. mkWeakThreadId :: MonadIO m => ThreadId -> m (Weak ThreadId)

    unliftio UnliftIO.Concurrent

    Lifted version of mkWeakThreadId.

  6. myThreadId :: MonadIO m => m ThreadId

    unliftio UnliftIO.Concurrent

    Lifted version of myThreadId.

  7. rtsSupportsBoundThreads :: Bool

    unliftio UnliftIO.Concurrent

    True if bound threads are supported. If rtsSupportsBoundThreads is False, isCurrentThreadBound will always return False and both forkOS and runInBoundThread will fail.

  8. runInBoundThread :: MonadUnliftIO m => m a -> m a

    unliftio UnliftIO.Concurrent

    Unlifted version of runInBoundThread.

  9. runInUnboundThread :: MonadUnliftIO m => m a -> m a

    unliftio UnliftIO.Concurrent

    Unlifted version of runInUnboundThread.

  10. threadCapability :: MonadIO m => ThreadId -> m (Int, Bool)

    unliftio UnliftIO.Concurrent

    Lifted version of threadCapability.

Page 461 of many | Previous | Next