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.

  1. resourceForkWith :: forall (m :: Type -> Type) a . MonadUnliftIO m => (IO () -> IO a) -> ResourceT m () -> ResourceT m a

    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.

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

  3. pooledForConcurrentlyN :: (MonadUnliftIO m, Traversable t) => Int -> t a -> (a -> m b) -> m (t b)

    unliftio UnliftIO.Async

    Similar to pooledMapConcurrentlyN but with flipped arguments.

  4. pooledForConcurrentlyN_ :: (MonadUnliftIO m, Foldable t) => Int -> t a -> (a -> m b) -> m ()

    unliftio UnliftIO.Async

    Like pooledMapConcurrentlyN_ but with flipped arguments.

  5. pooledForConcurrently_ :: (MonadUnliftIO m, Foldable f) => f a -> (a -> m b) -> m ()

    unliftio UnliftIO.Async

    Like pooledMapConcurrently_ but with flipped arguments.

  6. removePathForcibly :: MonadIO m => FilePath -> m ()

    unliftio UnliftIO.Directory

    Lifted removePathForcibly.

  7. addForeignPtrFinalizer :: MonadIO m => FinalizerPtr a -> ForeignPtr a -> m ()

    unliftio UnliftIO.Foreign

    Lifted addForeignPtrFinalizer.

  8. addForeignPtrFinalizerEnv :: MonadIO m => FinalizerEnvPtr env a -> Ptr env -> ForeignPtr a -> m ()

    unliftio UnliftIO.Foreign

    Lifted addForeignPtrFinalizerEnv.

  9. addGHCForeignPtrFinalizer :: MonadUnliftIO m => ForeignPtr a -> m () -> m ()

    unliftio UnliftIO.Foreign

    Unlifted addForeignPtrFinalizer.

  10. castForeignPtr :: ForeignPtr a -> ForeignPtr b

    unliftio UnliftIO.Foreign

    This function casts a ForeignPtr parameterised by one type into another type.

Page 422 of many | Previous | Next