What about something like:
https://gist.github.com/mattbillenstein/7baa1d0d006cf6981942
I use Event()s to synchronize the writer to the readers - and a deque to store
the data. When you render a page, you render in the deque, then stream new
data.
Is there a better way to synchronize things than using two events?
A single queue doesn't handle fanning out the data to multiple readers -
multiple queues (one per reader) seems awkward.
m
> --
> You received this message because you are subscribed to the Google Groups
> "gevent: coroutine-based Python network library" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
gevent+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Matt Billenstein
ma...@vazor.com
http://www.vazor.com/