Skip to content

Commit

Permalink
Update awscrt/s3.py
Browse files Browse the repository at this point in the history
add better documentation.

Co-authored-by: Nate Prewitt <[email protected]>
  • Loading branch information
JonathanHenson and nateprewitt authored Nov 6, 2023
1 parent 9ca4769 commit a935134
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion awscrt/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ def crt_instance_lock_acquire(lock_scope_name):
the lock is already held by another caller. Callers should use this value
in a with block for automatic release when they're finished with it, or explicitly call
release(). When the process exits, this lock will be released regardless of if
release has been invoked. """
release has been invoked.
Keyword Args:
lock_scope_name (str): Unique string identifying the caller holding the lock.
Returns:
InstanceLock
"""
return InstanceLock(_awscrt.s3_instance_lock_acquire(lock_scope_name))


Expand Down

0 comments on commit a935134

Please sign in to comment.