mirror of https://github.com/python/cpython
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
This commit is contained in:
parent
9e77f72fb2
commit
b79e01248d
|
@ -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…
Reference in New Issue