Kaydet (Commit) b79e0124 authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine

üst 9e77f72f
...@@ -275,7 +275,7 @@ Semaphore ...@@ -275,7 +275,7 @@ Semaphore
Returns ``True`` if semaphore can not be acquired immediately. Returns ``True`` if semaphore can not be acquired immediately.
.. coroutinemethod:: release() .. method:: release()
Release a semaphore, incrementing the internal counter by one. When it Release a semaphore, incrementing the internal counter by one. When it
was zero on entry and another coroutine is waiting for it to become was zero on entry and another coroutine is waiting for it to become
...@@ -291,4 +291,3 @@ BoundedSemaphore ...@@ -291,4 +291,3 @@ BoundedSemaphore
This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would This raises :exc:`ValueError` in :meth:`~Semaphore.release` if it would
increase the value above the initial value. increase the value above the initial value.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment