niolabs / nio

The Python block development framework for the nio software platform

Home Page:https://docs.n.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow one LimitLock per "key" in block mixin

shadetree01010100 opened this issue · comments

A block implementing the LimitLock mixin may need multiple locks, for each group for example. Block designers should be able to do something like this:
self.execute_with_lock(my_func, key=group)