Neat class! Is this meant to be invoked concurrently, though? The `scala.collection.mutable.Queue` is not thread-safe. If a single instance could be invoked from multiple threads, you probably want to just switch to a `java.util.concurrent.ConcurrentLinkedQueue`.