Hoogle Search
Within LTS Haskell 24.48 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
forkBackgroundLogger :: Capacity -> LogAction IO msg -> IO () -> IO (BackgroundWorker msg)co-log-concurrent Colog.Concurrent Creates background logger with given Capacity, takes a LogAction that should describe how to write logs. capacity - parameter tells how many in-flight messages are allowed, if that value is reached then user's thread that emits logs is blocked until any message is written. Usually, if the value is chosen reasonably high and if this value is reached it means that the application environment experiences severe problems. N.B. The LogAction is run in the background thread so that logger should not add any thread-specific context to the message. N.B. On exit, even in case of exception thread will dump all values that are in the queue. But it will stop doing that in case if another exception will happen.
- Exception handing*. forkBackoundLogger forks a private that and does not expect that someone sends it an asynchronous exception. It means that any asynchronous exception is treated as a command to stop the worker. Logger is not aware of synchronous exceptions as well, so handing of the application specific exceptions should be a concern of the logging action.
-
constrained-categories Control.Category.Constrained.Prelude -
constrained-categories Control.Category.Constrained.Prelude No documentation available.
-
constrained-categories Control.Monad.Constrained -
constrained-categories Control.Monad.Constrained No documentation available.
-
constrained-categories Control.Monad.Constrained No documentation available.
-
constrained-categories Data.Foldable.Constrained No documentation available.
-
constrained-categories Data.Traversable.Constrained forAll :: Stream Bool -> Prop Universalcopilot-language Copilot.Language Universal quantification of boolean streams over time.
forAll :: Stream Bool -> Prop Universalcopilot-language Copilot.Language.Spec Universal quantification of boolean streams over time.