You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After working on the built-in pubsub system I've realized it may be useful to have a (set of) synchronization decorator(s) for limiting multi-task access to user defined functions.
This would make it easy to allow for multiple actors to make calls to a common actor that defines functions which don't want more then some finite number of tasks executing its body at a given time.
Need to think about it a little more.
The text was updated successfully, but these errors were encountered:
The basic idea was you could call (Portal.run()) this target func multiple times but in the "server" actor only one task would ever run the number of tasks specified (possibly by name?). I'm not sure if this makes sense any more at all since the func can just be defined to use trio.Locks and the like (trio.CapacityLimiter?).
After working on the built-in pubsub system I've realized it may be useful to have a (set of) synchronization decorator(s) for limiting multi-task access to user defined functions.
This would make it easy to allow for multiple actors to make calls to a common actor that defines functions which don't want more then some finite number of tasks executing its body at a given time.
Need to think about it a little more.
The text was updated successfully, but these errors were encountered: