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
- newtype Capacity = Capacity Natural
Documentation
data BackgroundWorker msg Source #
Wrapper for the background thread that may receive messages to process.
BackgroundWorker | |
|