<p dir="ltr">Forwarding from Haskell-Beginners:</p>
<p dir="ltr">Hi list,</p>
<p dir="ltr">It would be handy for me to have a bounded STM Queue along the lines of TBQueue with the difference that when the queue is full, a call to writeTBQueue is a non-blocking no-op.</p>
<p dir="ltr">This is in the context of an asynchronous logging system. If the load (somehow) gets heavy enough that the log message queue is taking up a lot of memory, It's better to lose a few log messages than to have processes block until the logger catches up.</p>
<p dir="ltr">Are there any off-the-shelf solutions?</p>
<p dir="ltr">Cheers,<br>
Alex<br>
</p>