Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2014-09-28 23:24:39 +09:00
parent a0f558ee3c
commit 4023c26cf1
1 changed files with 3 additions and 2 deletions

View File

@ -228,8 +228,9 @@ blocking task there. The example follows:
} }
First we set the number of background threads which run tasks. By First we set the number of background threads which run tasks. By
default it is set to 1. In this example, we set it to 16, so 16 tasks default it is set to 1. In this example, we set it to 16, so at most
can be executed in parallel. 16 tasks can be executed concurrently without blocking handling new
requests.
We call ``req->run_task()`` to execute task in background thread. In We call ``req->run_task()`` to execute task in background thread. In
the passed callback, we just simply sleeps 1 second. After sleep is the passed callback, we just simply sleeps 1 second. After sleep is