I am using multiple threads to work through items in a very large list untell it is empty.
while item_list:
my_item = item_list.pop()
I check if any items are left in list and if so I pop one and work on it. Is this process thread safe?
Is there chance that when I check there is an item in list but by time I pop it will be gone and raise error? Or any other issues?