trace-forward-2.2.2: The forwarding protocols library for cardano node.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Trace.Forward.Utils.TraceObject

Synopsis

Documentation

data ForwardSink lo Source #

Constructors

ForwardSink 

Fields

writeToSink :: ForwardSink lo -> lo -> IO () Source #

There are 4 possible cases when we try to write tracing item: 1. The queue is still empty (no tracing items were written in it). 2. The queue is already empty (all previously written items were taken from it). 3. The queue is full. In this case flush all tracing items to stdout and continue. 4. The queue isn't empty and isn't full. Just continue writing.

readFromSink Source #

Arguments

:: ForwardSink lo

The sink contains the queue we read TraceObjects from.

-> TraceObjectForwarder lo IO () 

getTraceObjectsFromReply Source #

Arguments

:: BlockingReplyList blocking lo

The reply with list of TraceObjects.

-> [lo]