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.
asyncThreadId :: Async a -> ThreadIdunliftio UnliftIO.Async -
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.
isCurrentThreadBound :: MonadIO m => m Boolunliftio UnliftIO.Concurrent Lifted version of isCurrentThreadBound.
killThread :: MonadIO m => ThreadId -> m ()unliftio UnliftIO.Concurrent Lifted version of killThread.
mkWeakThreadId :: MonadIO m => ThreadId -> m (Weak ThreadId)unliftio UnliftIO.Concurrent Lifted version of mkWeakThreadId.
myThreadId :: MonadIO m => m ThreadIdunliftio UnliftIO.Concurrent Lifted version of myThreadId.
rtsSupportsBoundThreads :: Boolunliftio UnliftIO.Concurrent True if bound threads are supported. If rtsSupportsBoundThreads is False, isCurrentThreadBound will always return False and both forkOS and runInBoundThread will fail.
runInBoundThread :: MonadUnliftIO m => m a -> m aunliftio UnliftIO.Concurrent Unlifted version of runInBoundThread.
runInUnboundThread :: MonadUnliftIO m => m a -> m aunliftio UnliftIO.Concurrent Unlifted version of runInUnboundThread.
threadCapability :: MonadIO m => ThreadId -> m (Int, Bool)unliftio UnliftIO.Concurrent Lifted version of threadCapability.