<div dir="ltr">You're probably not on the right mailing list, this seems more appropriate to Haskell-cafe than to Haskell-beginners.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 11:32 PM, Alex Hammel <span dir="ltr"><<a href="mailto:ahammel87@gmail.com" target="_blank">ahammel87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi list,<br><br>It would be handy for me to have a bounded STM Queue along the lines of <a href="https://hackage.haskell.org/package/stm-2.4/docs/Control-Concurrent-STM-TBQueue.html" target="_blank">TBQueue</a> with the difference that when the queue is full, a call to writeTBQueue is a non-blocking no-op.<br><br>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.<br><br>Are there any off-the-shelf solutions?<br><br>Cheers,<br>Allex<br><a href="https://hackage.haskell.org/package/stm-2.4/docs/Control-Concurrent-STM-TBQueue.html" target="_blank"></a></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>