goodboy / tractor

A distributed, structured concurrent runtime for Python (and friends)
GNU Affero General Public License v3.0
271 stars 12 forks source link

Initial prototype for `trio.Nursery` per-task-scope-mangement via a user defined single-yield-generator function 😎 #363

Open goodboy opened 1 year ago

goodboy commented 1 year ago

As per some discussion in the trio gitter and starting something toward #22 and supporting our debugger crash mode from within a trio-compat task nursery.


Idea: a trio.Nursery API for optionally allowing a user to define a per-task manager

But why?

Well if you wanted any of the following (some of which are implemented in the module script in this patch):


ToDo:

Hopefully much more to come!