queuelinks
Vars | |
queues | assoc list of pending queues, id = /datum/queue_link |
---|---|
Procs | |
add_to_queue | Creates or adds to a queue with the id supplied, if the queue is now or above the size of the queue, calls MatchedLinks and clears queue. queues with a size of 0 wait never pop until something is added with an actual queue_max |
pop_link | Pop a queue link without waiting for it to reach its max size. This is useful for those links that do not have a fixed size and thus may not pop. |
Var Details
queues
assoc list of pending queues, id = /datum/queue_link
Proc Details
add_to_queue
Creates or adds to a queue with the id supplied, if the queue is now or above the size of the queue, calls MatchedLinks and clears queue. queues with a size of 0 wait never pop until something is added with an actual queue_max
pop_link
Pop a queue link without waiting for it to reach its max size. This is useful for those links that do not have a fixed size and thus may not pop.