Diff

teal-src/plugins/mod_cron.tl @ 12498:c3e47a5dd30d

util.async: Add Teal description file
author Kim Alvefur <zash@zash.se>
date Sun, 08 May 2022 15:21:35 +0200
parent 12489:8b42575738f0
child 12503:ad49bb3a4780
line wrap: on
line diff
--- a/teal-src/plugins/mod_cron.tl	Sun May 08 18:06:41 2022 +0200
+++ b/teal-src/plugins/mod_cron.tl	Sun May 08 15:21:35 2022 +0200
@@ -88,7 +88,7 @@
 	task:save(started_at);
 end
 
-local task_runner = async.runner(run_task);
+local task_runner : async.runner_t<task_spec> = async.runner(run_task);
 module:add_timer(1, function() : integer
 	module:log("info", "Running periodic tasks");
 	local delay = 3600;