diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-07 18:28:14 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-07 18:28:14 +0000 |
commit | ca637c5d862695705dff9c54b8fa6f33465e21b5 (patch) | |
tree | 3231a7a95e3602cf11fc092f70d835a4ab52b1d5 /doc | |
parent | dd038e573b01235290f0bd790bd2c51638a1e767 (diff) | |
download | labitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.tar.gz labitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.tar.xz labitrack-ca637c5d862695705dff9c54b8fa6f33465e21b5.zip |
add filequeue example
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/queueexample.lua | 8 |
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() |