This will abort both the producer and consumer possibly removing items from the queue to make room for our END_OF_QUEUE marker.
Wait for both the producer and consumer threads (if any) to finish
Wait for the consumer thread (if any) to finish
Wait for the producer thread (if any) to finish
Note: It's not clear what the correct behavior of this method is.
Note: It's not clear what the correct behavior of this method is. It will currently block until the producer/consumer threads have cleanly finished.
Run the function in a separate producer thread.
Run the function in a separate producer thread. Should only be called once since it will close the Builder when the thread finishes.
A LazySeq producer/consumer pair that uses a BlockingQueue
I think this is Thread-Safe