Originally posted by B Chen:
Queue? What are you using a queue for?
So far, I am using it internally in my data layer. It holds the record id's of the deleted records of the file. So when I create a new record and I need to find out the record number, I do:
Doing so allows the create method to fail and the queue not to loose the unused ID. Well, I think it is a bit more than that, but I think you get the idea.