On 12 avr, 01:59, Ben Darnell <
b...@bendarnell.com> wrote:
> Aliane is right; if a handler method uses @gen.engine you need to also use
> @asynchronous (at least as long as the generator yields anything
> interesting). @gen.coroutine is a little more magic: as of 3.0.1 if you
> use both @asynchronous and @gen.coroutine you don't have to call finish()
> explicitly (this isn't documented because it was a side effect of the 3.0.1
> patch and wasn't in 3.0). In 3.1 I think you'll be able to use
> @gen.coroutine without @asynchronous, as well as use @gen.coroutine on
> methods that cannot currently be made asynchronous like prepare().
>
> -Ben
>