Deprecate support for multiple tasks in the private old_nursery used by start()#1600
Deprecate support for multiple tasks in the private old_nursery used by start()#1600oremanj wants to merge 2 commits intopython-trio:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1600 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 110 110
Lines 13849 13858 +9
Branches 1056 1057 +1
=======================================
+ Hits 13807 13816 +9
Misses 27 27
Partials 15 15
|
|
Like I mentioned in chat: this might be a good idea, but I think it's hard to tell right now. The unknowns for me are:
Hmm. I guess a less-intrusive way to handle this would be to make That feels a lot more "obvious good idea" to me. |
|
So yeah having slept on this a bit I think I'd be fine with a reworked version of this PR that issued the deprecation at the point of spawning a child into that nursery (from |
|
It's quite a lot of trouble for #1521 to support the case where new service tasks were spawned into the old_nursery. But it would work fine to forbid that case while continuing to allow non-service tasks to come along for the ride. I just figured it was better to be consistent. Marking this as draft until we come back to #1521. |
Fixes #1599; see there (or read the newsfragment) for rationale.