Pops data from the @queue. If @queue is empty, this function blocks until data becomes available.
data from the queue