Copyright | (c) 2018-2020 Kowainik (c) 2020 Alexander Vershilov |
---|---|
License | MPL-2.0 |
Maintainer | Alexander Vershilov <alexander.vershilov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
This is internal module, use it on your own risk. The implementation here may be changed without a version bump.
Synopsis
- data BackgroundWorker msg = BackgroundWorker {
- backgroundWorkerThreadId :: !ThreadId
- backgroundWorkerWrite :: msg -> STM ()
- backgroundWorkerIsAlive :: TVar Bool
- data Capacity = Capacity Natural (Maybe Natural)
- mkCapacity :: Natural -> Maybe Natural -> Capacity
Documentation
data BackgroundWorker msg Source #
Wrapper for the background thread that may receive messages to process.
BackgroundWorker | |
|
A wrapper type that carries capacity. The internal type may be differrent for the different GHC versions.