awestlake87 / pyo3-asyncio

Other
300 stars 45 forks source link

Python::with_gil() may block executor threads #117

Open HyeonuPark opened 6 months ago

HyeonuPark commented 6 months ago

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?