George Zhang <geetran...@gmail.com> added the comment:

Also, while the PEP first introducing asynchronous generators stated that its 
.asend() and .athrow() methods will return a "coroutine-like object", it 
doesn't allow any introspection into its state or parent async generator.

My workaround was to wrap the .asend() and other methods with another coroutine 
that just awaits and returns the result. Having a better way to check its state 
and frame will bring it closer to a coroutine.

----------
nosy: +GeeVye

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

Reply via email to