Stefan Behnel added the comment:

Note that the expected usage is not as a function but as a decorator. That 
should be stated in the docs as well. IMHO, users should only do two things 
with whatever the result is: either use it as a Generator (as before), or pass 
it as an argument to "await". Everything else is best considered implementation 
details. Well, except for the case of passing a coroutine, which will obviously 
just be passed through (and that answers the original question).

----------
nosy: +scoder

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to