co-log-concurrent-0.5.0.0: Asynchronous backend for co-log library

Copyright(c) 2018-2020 Kowainik (c) 2020 Alexander Vershilov
LicenseMPL-2.0
MaintainerAlexander Vershilov <alexander.vershilov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Colog.Concurrent.Internal

Description

This is internal module, use it on your own risk. The implementation here may be changed without a version bump.

Synopsis

Documentation

data BackgroundWorker msg Source #

Wrapper for the background thread that may receive messages to process.

Constructors

BackgroundWorker 

Fields

data Capacity Source #

A wrapper type that carries capacity. The internal type may be differrent for the different GHC versions.

Constructors

Capacity Natural (Maybe Natural) 

mkCapacity Source #

Arguments

:: Natural

Size of the queue. Number of the messages in flight

-> Maybe Natural

Maximum number of messages that logger can read in a chunk.

-> Capacity 

Creates new capacity.

Since: 0.5.0.0