Added extra explanation from Felipe
This commit is contained in:
parent
a144b56928
commit
ae8168ede5
@ -1038,6 +1038,10 @@ instance MonadBase IO (GHandler sub master) where
|
|||||||
-- @fork@ function is incompatible with the underlying @ResourceT@ system.
|
-- @fork@ function is incompatible with the underlying @ResourceT@ system.
|
||||||
-- Instead, if you must fork a separate thread, you should use
|
-- Instead, if you must fork a separate thread, you should use
|
||||||
-- @resourceForkIO@.
|
-- @resourceForkIO@.
|
||||||
|
--
|
||||||
|
-- Using fork usually leads to an exception that says
|
||||||
|
-- \"Control.Monad.Trans.Resource.register\': The mutable state is being accessed
|
||||||
|
-- after cleanup. Please contact the maintainers.\"
|
||||||
instance MonadBaseControl IO (GHandler sub master) where
|
instance MonadBaseControl IO (GHandler sub master) where
|
||||||
data StM (GHandler sub master) a = StH (StM (ResourceT IO) a)
|
data StM (GHandler sub master) a = StH (StM (ResourceT IO) a)
|
||||||
liftBaseWith f = GHandler $ \reader ->
|
liftBaseWith f = GHandler $ \reader ->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user