Add blocking_queue_size function