Comparison

teal-src/module.d.tl @ 12502:5862ddf71e3c

teal/moduleapi: Describe timer wrapper Since it's used in mod_cron
author Kim Alvefur <zash@zash.se>
date Sun, 15 May 2022 15:27:35 +0200
parent 11941:cfd37453e6b6
child 12643:9fa749cbd376
comparison
equal deleted inserted replaced
12501:042de4f0076e 12502:5862ddf71e3c
60 end 60 end
61 send : function (moduleapi, st.stanza_t, util_session) 61 send : function (moduleapi, st.stanza_t, util_session)
62 send_iq : function (moduleapi, st.stanza_t, util_session, number) 62 send_iq : function (moduleapi, st.stanza_t, util_session, number)
63 broadcast : function (moduleapi, { string }, st.stanza_t, function) 63 broadcast : function (moduleapi, { string }, st.stanza_t, function)
64 type timer_callback = function (number, ... : any) : number 64 type timer_callback = function (number, ... : any) : number
65 add_timer : function (moduleapi, number, timer_callback, ... : any) 65 record timer_wrapper
66 stop : function (timer_wrapper)
67 disarm : function (timer_wrapper)
68 reschedule : function (timer_wrapper, number)
69 end
70 add_timer : function (moduleapi, number, timer_callback, ... : any) : timer_wrapper
66 get_directory : function (moduleapi) : string 71 get_directory : function (moduleapi) : string
67 enum file_mode 72 enum file_mode
68 "r" "w" "a" "r+" "w+" "a+" 73 "r" "w" "a" "r+" "w+" "a+"
69 end 74 end
70 load_resource : function (moduleapi, string, file_mode) : FILE 75 load_resource : function (moduleapi, string, file_mode) : FILE