pyo3-asyncio icon indicating copy to clipboard operation
pyo3-asyncio copied to clipboard

Python::with_gil() may block executor threads

Open HyeonuPark opened this issue 1 year ago • 0 comments

Currently future_into_py() spawns task to rust runtime and do Python::with_gil(... within it. It may block the current executor thread if the python runtime is highly utilized or some long-running python code is occupying the lock. Would this be a room for improvement, or a known non-issue?

HyeonuPark avatar Feb 27 '24 08:02 HyeonuPark