diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/queue.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/queue.lua b/util/queue.lua index 728e905f..e63b3f1c 100644 --- a/util/queue.lua +++ b/util/queue.lua @@ -64,6 +64,9 @@ local function new(size, allow_wrapping) return pos+1, t._items[read_pos]; end, self, 0; end; + consume = function (self) + return self.pop, self; + end; }; end |