mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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.
This commit is contained in:
parent
927ef9f2f2
commit
ee10afcfab
1 changed files with 6 additions and 0 deletions
|
@ -896,6 +896,12 @@ return {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue