ipython / ipykernel

IPython Kernel for Jupyter
https://ipykernel.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
654 stars 369 forks source link

Replace BaseThread's add_task with start_soon #1300

Open davidbrochart opened 1 week ago

davidbrochart commented 1 week ago

This PR replaces a BaseThread's add_task() method with start_soon(). The new name is less confusing as it's the same as in AnyIO, and it allows to start a task in the thread even after the thread has been started. We also get rid of _IOPubThread, which has no reason to be different than a BaseThread.

(from #1291)