8000 Note that ResourceGuard is new as of 4.1 (#674) · IBMZ-Linux-OSS-Python/anyio@ce941c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce941c5

Browse files
tappletapple-cisco
andauthored
Note that ResourceGuard is new as of 4.1 (agronholm#674)
Co-authored-by: Tapple <mfulmer@cisco.com>
1 parent c6efbe3 commit ce941c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/anyio/_core/_synchronization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,8 @@ class ResourceGuard:
623623
624624
:param action: the action to guard against (visible in the :exc:`BusyResourceError`
625625
when triggered, e.g. "Another task is already {action} this resource")
626+
627+
.. versionadded:: 4.1
626628
"""
627629

628630
__slots__ = "action", "_guarded"

0 commit comments

Comments
 (0)
0