summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-08-07 18:28:14 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-08-07 18:28:14 +0000
commitca637c5d862695705dff9c54b8fa6f33465e21b5 (patch)
tree3231a7a95e3602cf11fc092f70d835a4ab52b1d5
parentdd038e573b01235290f0bd790bd2c51638a1e767 (diff)
downloadlabitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.tar.gz
labitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.tar.xz
labitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.zip
add filequeue example
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
-rw-r--r--doc/queueexample.lua8
1 files changed, 8 insertions, 0 deletions
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()