Skip to content

bpo-26552: Close dangling coroutine or future if loop is closed#30287

Closed
carlosdmz wants to merge 2 commits intopython:mainfrom
carlosdmz:issue26552
Closed

bpo-26552: Close dangling coroutine or future if loop is closed#30287
carlosdmz wants to merge 2 commits intopython:mainfrom
carlosdmz:issue26552

Conversation

@carlosdmz
Copy link
Copy Markdown
Contributor

@carlosdmz carlosdmz commented Dec 29, 2021

https://bugs.python.org/issue26552

With this small patch, the RuntimeError exception is raised without RuntimeWarning since the task is closed.

@gvanrossum
Copy link
Copy Markdown
Member

Just curious, why'd you close this?

@carlosdmz
Copy link
Copy Markdown
Contributor Author

carlosdmz commented Dec 29, 2021

I didn't think my approach was that good, and I was supposed to start over since I was not too happy about it. If you have any thoughts on this, I'm happy to reinstate it.

@carlosdmz carlosdmz reopened this Dec 29, 2021
@gvanrossum
Copy link
Copy Markdown
Member

Oh, that’s all right, I was just wondering. There’s another PR for the same issue now, could you look at that maybe?

@carlosdmz
Copy link
Copy Markdown
Contributor Author

Yes, sure. I'll leave this closed and will refer to the other PR. Thanks!

@carlosdmz carlosdmz closed this Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants