Expose top level try_lock

This commit is contained in:
Joshua Harlow
2015-06-03 12:58:50 -07:00
parent 9c19880f6b
commit 1d14c470fd
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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