代码拉取完成,页面将自动刷新
语法: ngx.sleep(seconds)
环境: rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*
无阻塞地休眠特定秒。时间可以精确到 0.001 秒 (毫秒)。
在后台,此方法使用 Nginx 的定时器。
自版本 0.7.20
开始,0
也可以作为时间参数被指定。
这个方法最早在版本 0.5.0rc30
中出现。
English Source
syntax: ngx.sleep(seconds)
context: rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*
Sleeps for the specified seconds without blocking. One can specify time resolution up to 0.001 seconds (i.e., one milliseconds).
Behind the scene, this method makes use of the Nginx timers.
Since the 0.7.20
release, The 0
time argument can also be specified.
This method was introduced in the 0.5.0rc30
release.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。