Changeset

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
parents 41:1a1bd8cd4bdb
children 43:a33036b7e5ab
files init.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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