Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
resourcet Control.Monad.Trans.Resource Introduce a reference-counting scheme to allow a resource context to be shared by multiple threads. Once the last thread exits, all remaining resources will be released. The first parameter is a function which will be used to create the thread, such as forkIO or async. Note that abuse of this function will greatly delay the deallocation of registered resources. This function should be used with care. A general guideline: If you are allocating a resource that should be shared by multiple threads, and will be held for a long time, you should allocate it at the beginning of a new ResourceT block and then call resourceForkWith from there.
pooledForConcurrently :: (MonadUnliftIO m, Traversable t) => t a -> (a -> m b) -> m (t b)unliftio UnliftIO.Async Similar to pooledForConcurrentlyN but with number of threads set from getNumCapabilities. Usually this is useful for CPU bound tasks.
pooledForConcurrentlyN :: (MonadUnliftIO m, Traversable t) => Int -> t a -> (a -> m b) -> m (t b)unliftio UnliftIO.Async Similar to pooledMapConcurrentlyN but with flipped arguments.
pooledForConcurrentlyN_ :: (MonadUnliftIO m, Foldable t) => Int -> t a -> (a -> m b) -> m ()unliftio UnliftIO.Async Like pooledMapConcurrentlyN_ but with flipped arguments.
pooledForConcurrently_ :: (MonadUnliftIO m, Foldable f) => f a -> (a -> m b) -> m ()unliftio UnliftIO.Async Like pooledMapConcurrently_ but with flipped arguments.
removePathForcibly :: MonadIO m => FilePath -> m ()unliftio UnliftIO.Directory Lifted removePathForcibly.
addForeignPtrFinalizer :: MonadIO m => FinalizerPtr a -> ForeignPtr a -> m ()unliftio UnliftIO.Foreign Lifted addForeignPtrFinalizer.
addForeignPtrFinalizerEnv :: MonadIO m => FinalizerEnvPtr env a -> Ptr env -> ForeignPtr a -> m ()unliftio UnliftIO.Foreign Lifted addForeignPtrFinalizerEnv.
addGHCForeignPtrFinalizer :: MonadUnliftIO m => ForeignPtr a -> m () -> m ()unliftio UnliftIO.Foreign Unlifted addForeignPtrFinalizer.
castForeignPtr :: ForeignPtr a -> ForeignPtr bunliftio UnliftIO.Foreign This function casts a ForeignPtr parameterised by one type into another type.