Diff

init.lua @ 42:6006e6bb1c28

verse: Add verse.add_task(delay, callback) to add timer functions using util.timer
author Matthew Wild <mwild1@gmail.com>
date Sun, 03 Jan 2010 18:01:54 +0000
parent 30:9c96318913f7
child 44:37396504de5f
line wrap: on
line diff
--- a/init.lua	Wed Dec 23 00:59:35 2009 +0000
+++ b/init.lua	Sun Jan 03 18:01:54 2010 +0000
@@ -22,6 +22,8 @@
 	return setmetatable(t, stream);
 end
 
+verse.add_task = require "util.timer".add_task;
+
 function verse.loop()
 	return server.loop();
 end