Event loop integration
- 主要語言
- Python
- 星號
- 734
- 分支
- 412
- 平均合併
- 1 天 5 小時
- 30 天內合併 PR
- 8
描述
This issue is mostly for me to understand how we can move forward with [the switch to AnyIO](https://github.com/ipython/ipykernel/pull/1079) with regards to event loop integration.
It looks like this is currently done manually by the host event loop, which must call `kernel.do_one_iteration()` [regularly](https://ipython.readthedocs.io/en/stable/config/eventloops.html#integrating-with-a-new-event-loop-in-the-kernel).
I am wondering if we could use something like [Trio's guest mode](https://trio.readthedocs.io/en/stable/reference-lowlevel.html#using-guest-mode-to-run-trio-on-top-of-other-event-loops) instead. There would be no need to worry about low-level details and manually run ipykernel's event loop.
cc @Carreau
貢獻指南
評估
這個 Issue 還沒有評估資料。