Closed harlowja closed 9 years ago
Add a locked decorator and try_lock helper.
locked
try_lock
Also adds more tests!
Add a
locked
decorator andtry_lock
helper.locked
decorator is useful to lock a instance method where that instance object that the method is attached to has a lock object connected to an attribute (or list of locks) that should be acquired before/after running the decorated method.Also adds more tests!