Update doc
This commit is contained in:
parent
a0f558ee3c
commit
4023c26cf1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue