gh-142784: Employ `asyncio.Runner` in the asyncio REPL
- Issue: gh-142784
I'm happy to have confirmed that this fixes the problem in GH-140288. I'll add a test and we're ready.
In the meantime -- @graingert, do you think this is the good direction?
@kumaraditya303 I've dropped asyncio.Runner and used .close() only, as discussed.
@ZeroIntensity needs backport to 3.13 needs backport to 3.14
Thanks @johnslavik for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. 🐍🍒⛏🤖
Thanks @johnslavik for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. 🐍🍒⛏🤖
GH-142932 is a backport of this pull request to the 3.13 branch.
GH-142933 is a backport of this pull request to the 3.14 branch.