packages feed

unliftio 0.2.10 → 0.2.11

raw patch · 3 files changed

+19/−5 lines, 3 files

Files

ChangeLog.md view
@@ -1,5 +1,10 @@ # Changelog for unliftio +## 0.2.11++* Deprecate `forkWithUnmask` in favor of the newly added `forkIOWithUnmask` to+  improve consistency. [https://github.com/fpco/unliftio/issues/44]+ ## 0.2.10  * Add pooling related functions for unliftio
src/UnliftIO/Concurrent.hs view
@@ -11,7 +11,7 @@     ThreadId,      -- * Basic concurrency operations-    myThreadId, forkIO, forkWithUnmask, forkFinally, killThread, throwTo,+    myThreadId, forkIO, forkWithUnmask, forkIOWithUnmask,  forkFinally, killThread, throwTo,      -- ** Threads with affinity     forkOn, forkOnWithUnmask, getNumCapabilities, setNumCapabilities,@@ -60,11 +60,20 @@  -- | Unlifted version of 'C.forkIOWithUnmask'. --+-- @since 0.2.11+forkIOWithUnmask :: MonadUnliftIO m => ((forall a. m a -> m a) -> m ()) -> m ThreadId+forkIOWithUnmask m =+  withRunInIO $ \run -> C.forkIOWithUnmask $ \unmask -> run $ m $ liftIO . unmask . run+{-# INLINABLE forkIOWithUnmask #-}++-- | Please use 'forkIOWithUnmask' instead. This function has been deprecated+-- in release 0.2.11 and will be removed in the next major release.+-- -- @since 0.1.1.0 forkWithUnmask :: MonadUnliftIO m => ((forall a. m a -> m a) -> m ()) -> m ThreadId-forkWithUnmask m =-  withRunInIO $ \run -> C.forkIOWithUnmask $ \unmask -> run $ m $ liftIO . unmask . run+forkWithUnmask = forkIOWithUnmask {-# INLINABLE forkWithUnmask #-}+{-# DEPRECATED forkWithUnmask "forkWithUnmask has been renamed to forkIOWithUnmask" #-}  -- | Unlifted version of 'C.forkFinally'. --
unliftio.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 806905923ede98dbf20fe24ac95d14b92b4a62626183173c24b86850dc5beada+-- hash: 9b54d473debcf0958351a2c8a7924ed9a8d3504243c348545109ffe72b005683  name:           unliftio-version:        0.2.10+version:        0.2.11 synopsis:       The MonadUnliftIO typeclass for unlifting monads to IO (batteries included) description:    Please see the documentation and README at <https://www.stackage.org/package/unliftio> category:       Control