Changelog
$queue
2007-12-20 23:31 UTC · Daiverd (#2)
Added:
$queue a generic waif-based fifo queue
Notes:
I made a $queue with :put and :get verbs
it's fifo so first thing in, first out.
var = $queue:new() make your new queue
var:put("hello") put hello on the queue
var:get() returns "hello"
"by default get will suspend until there is data on the queue, if you want it to just return 0 do
var:get(0)
you could say get(suspend) if suspend is true it suspends until there's something on the queue
stay tuned for a priority queue