doc: mentioned ngx.timer.at for doing background jobs in ngx.eof's documentation.

This commit is contained in:
Yichun Zhang (agentzh) 2014-01-23 19:18:24 -08:00
Родитель c5c8a12812
Коммит 1d85a61f64
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -3613,6 +3613,8 @@ But if you create subrequests to access other locations configured by Nginx upst
proxy_ignore_client_abort on;
```
A better way to do background jobs is to use the [ngx.timer.at](#ngxtimerat) API.
Since `v0.8.3` this function returns `1` on success, or returns `nil` and a string describing the error otherwise.
[Back to TOC](#table-of-contents)

Просмотреть файл

@ -3004,6 +3004,8 @@ But if you create subrequests to access other locations configured by Nginx upst
proxy_ignore_client_abort on;
</geshi>
A better way to do background jobs is to use the [[#ngx.timer.at|ngx.timer.at]] API.
Since <code>v0.8.3</code> this function returns <code>1</code> on success, or returns <code>nil</code> and a string describing the error otherwise.
== ngx.sleep ==