当前位置: 首页 > 工具软件 > ngx-context > 使用案例 >

ngx timer

周宏伯
2023-12-01

local delay=3
local handle

handle = function(param1,param2)
if param1 then
return
end
ngx.log(ngx.ERR,"param is " ..param2)
ngx.timer.at(delay,handle,"hello timer again")
end

local ok,err = ngx.timer.at(delay,handle,"hello timer")



[lua] test.lua:8: param is hello timer, context: ngx.timer, client: xxx, server: 0.0.0.0:6699
[lua] test.lua:8: param is hello timer again, context: ngx.timer, client: xxx, server: 0.0.0.0:6699
 类似资料:

相关阅读

相关文章

相关问答