Software /
code /
prosody
File
teal-src/util/timer.d.tl @ 12781:22066b02887f
util.startup: Provide a common Lua 5.3+ math.type() for Lua 5.2
Code deduplication
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 19 Oct 2022 16:25:05 +0200 |
parent | 12624:7eca6c919d5e |
line wrap: on
line source
local record util_timer record task end type timer_callback = function (number) : number add_task : function ( number, timer_callback, any ) : task stop : function ( task ) reschedule : function ( task, number ) : task end return util_timer