ghc-internal-10.0.0: Basic libraries
Safe HaskellUnsafe
LanguageHaskell2010

GHC.Internal.Weak.Finalize

Synopsis

Documentation

getFinalizerExceptionHandler :: IO (SomeException -> IO ()) Source #

Get the global action called to report exceptions thrown by weak pointer finalizers to the user.

Since: base-4.18.0.0

setFinalizerExceptionHandler :: (SomeException -> IO ()) -> IO () Source #

Set the global action called to report exceptions thrown by weak pointer finalizers to the user.

Since: base-4.18.0.0

runFinalizerBatch :: Int -> Array# (State# RealWorld -> State# RealWorld) -> IO () Source #

Run a batch of finalizers from the garbage collector. We're given an array of finalizers and the length of the array, and we just call each one in turn.