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.
This PR replaces a
BaseThread
'sadd_task()
method withstart_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 aBaseThread
.(from #1291)