The easiest solution is to keep a number and increment the count on
every callback. Once the number is at the right count write the
response.
I wrote a buffered writer class to help me with multi async request situations:
See BufferedWriter:
http://github.com/docyes/splunk_blaze/blob/master/splunkblaze/web.py
Maybe someone has a better best pattern or practice.
Carl
On Thu, Apr 1, 2010 at 4:13 PM, mattd <mattde...@gmail.com> wrote:
> What's the best way to make more than one async call in a single
> RequestHandler method?
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>
Maybe the use of python lambas help better ;)
2010/4/1 Otávio Souza <aragao...@gmail.com>:
Do you have an example?
tornado.httpclient.AsyncHTTPClient(max_clients=1000)
2010/4/2 Otávio Souza <aragao...@gmail.com>:
The easiest solution is to keep a number and increment the count on
every callback. Once the number is at the right count write the
response.