Antrian Python tidak kosong
while not q.empty():
row = q.get()
# do something with row
q.task_done()
Nervous Nightingale
while not q.empty():
row = q.get()
# do something with row
q.task_done()