Skip to content

Commit

Permalink
Fix doc: asyncio.Semaphore.release() actually is a regular function, …
Browse files Browse the repository at this point in the history
…not coroutine
  • Loading branch information
asvetlov committed May 8, 2015
1 parent 9e77f72 commit b79e012
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Doc/library/asyncio-sync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -291,4 +291,3 @@ BoundedSemaphore

This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would
increase the value above the initial value.

0 comments on commit b79e012

Please sign in to comment.