-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No equivalent of inspect.getcoroutinestate
for PyAsyncGenASend instances
#81952
Comments
In PEP-525, async generators were introduced. They use While these "coroutine-like" object implement When I use There is a workaround I use which is to wrap it with another coroutine as below: >>> async def async_generator():
... yield
...
>>> async def wrap_coro(coro):
... return await coro
>>> agen = async_generator()
>>> asend = wrap_coro(agen.asend(None)) This seems like something that should be changed to make it more inline with normal coroutines / awaitables. |
Duplicate of #79940. |
i think that this may not be a duplicate of GH-79940. if i understand correctly:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: