Software /
code /
prosody
Changeset
10983:0862325842ec
net.server_epoll: Signal API-compatibilty with util.timer
Reduces the overhead of having both util.timer and the timer handling
here, since they are very similar and now API-compatible.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Jun 2020 17:13:05 +0200 |
parents | 10982:276f16101d59 |
children | 10984:69ed4764edda |
files | net/server_epoll.lua |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Mon Jun 29 16:42:16 2020 +0200 +++ b/net/server_epoll.lua Mon Jun 29 17:13:05 2020 +0200 @@ -896,6 +896,12 @@ addserver = addserver; addclient = addclient; add_task = addtimer; + timer = { + -- API-compatible with util.timer + add_task = addtimer; + stop = closetimer; + reschedule = reschedule; + }; listen = listen; loop = loop; closeall = closeall;