Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b79e012

Browse files
committed
Fix doc: asyncio.Semaphore.release() actually is a regular function, not coroutine
1 parent 9e77f72 commit b79e012

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/library/asyncio-sync.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Semaphore
275275

276276
Returns ``True`` if semaphore can not be acquired immediately.
277277

278-
.. coroutinemethod:: release()
278+
.. method:: release()
279279

280280
Release a semaphore, incrementing the internal counter by one. When it
281281
was zero on entry and another coroutine is waiting for it to become
@@ -291,4 +291,3 @@ BoundedSemaphore
291291

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

0 commit comments

Comments
 (0)