goodboy / tractor

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

Callable key maybe open context #336

Closed goodboy closed 1 year ago

goodboy commented 1 year ago

Replacement for #329 since we can't easily do the whole "one nursery per context def" style..

Adds a key: Callable[..., Hashable] support and moves maybe_open_nursery() into this trionics._mngrs.py module which allows for more dynamic control over hashing logic.