File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,12 @@ object -- see :ref:`multiprocessing-managers`.
13691369 A solitary difference from its close analog exists: its ``acquire `` method's
13701370 first argument is named *block *, as is consistent with :meth: `Lock.acquire `.
13711371
1372+ .. method :: locked()
1373+
1374+ Return a boolean indicating whether this object is locked right now.
1375+
1376+ .. versionadded :: 3.14
1377+
13721378 .. note ::
13731379 On macOS, this is indistinguishable from :class: `Semaphore ` because
13741380 ``sem_getvalue() `` is not implemented on that platform.
@@ -1521,6 +1527,12 @@ object -- see :ref:`multiprocessing-managers`.
15211527 A solitary difference from its close analog exists: its ``acquire `` method's
15221528 first argument is named *block *, as is consistent with :meth: `Lock.acquire `.
15231529
1530+ .. method :: locked()
1531+
1532+ Return a boolean indicating whether this object is locked right now.
1533+
1534+ .. versionadded :: 3.14
1535+
15241536.. note ::
15251537
15261538 On macOS, ``sem_timedwait `` is unsupported, so calling ``acquire() `` with
You can’t perform that action at this time.
0 commit comments