Expose top level try_lock
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
lock a method using a found attribute (a lock
|
||||
object or list of lock objects) in the
|
||||
instance the method is attached to.
|
||||
- Expose top level `try_lock` function.
|
||||
0.6:
|
||||
- Allow the sleep function to be provided (so that
|
||||
various alternatives other than time.sleep can
|
||||
|
||||
@@ -22,6 +22,7 @@ from __future__ import absolute_import
|
||||
|
||||
from fasteners.lock import locked # noqa
|
||||
from fasteners.lock import read_locked # noqa
|
||||
from fasteners.lock import try_lock # noqa
|
||||
from fasteners.lock import write_locked # noqa
|
||||
|
||||
from fasteners.lock import ReaderWriterLock # noqa
|
||||
|
||||
Reference in New Issue
Block a user