From ca637c5d862695705dff9c54b8fa6f33465e21b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Tue, 7 Aug 2012 18:28:14 +0000 Subject: add filequeue example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- doc/queueexample.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/queueexample.lua (limited to 'doc') diff --git a/doc/queueexample.lua b/doc/queueexample.lua new file mode 100644 index 0000000..6b0c3ae --- /dev/null +++ b/doc/queueexample.lua @@ -0,0 +1,8 @@ +local filequeue = require 'filequeue' +local a = filequeue.open('./queue') +local b = a:new() +local f = b:open('wb') +f:write('test') +f:close() +b:queue() +a:stat() -- cgit v1.2.1