| Copyright | (c) 2018-2020 Kowainik | 
|---|---|
| License | MPL-2.0 | 
| Maintainer | Kowainik <xrom.xkov@gmail.com> | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Colog.Concurrent.Internal
Description
NOTE: Many thanks to Alexander Vershilov for the implementation.
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.
Constructors
| BackgroundWorker | |
| Fields 
 | |