mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
This commit is contained in:
parent
9e77f72fb2
commit
b79e01248d
1 changed files with 1 additions and 2 deletions
|
@ -275,7 +275,7 @@ Semaphore
|
|||
|
||||
Returns ``True`` if semaphore can not be acquired immediately.
|
||||
|
||||
.. coroutinemethod:: release()
|
||||
.. method:: release()
|
||||
|
||||
Release a semaphore, incrementing the internal counter by one. When it
|
||||
was zero on entry and another coroutine is waiting for it to become
|
||||
|
@ -291,4 +291,3 @@ BoundedSemaphore
|
|||
|
||||
This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would
|
||||
increase the value above the initial value.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue